[go: up one dir, main page]

TWI868764B - Audio signal processing device and audio signal processing method - Google Patents

Audio signal processing device and audio signal processing method Download PDF

Info

Publication number
TWI868764B
TWI868764B TW112124450A TW112124450A TWI868764B TW I868764 B TWI868764 B TW I868764B TW 112124450 A TW112124450 A TW 112124450A TW 112124450 A TW112124450 A TW 112124450A TW I868764 B TWI868764 B TW I868764B
Authority
TW
Taiwan
Prior art keywords
parameter set
signal
audio signal
processing device
decoder
Prior art date
Application number
TW112124450A
Other languages
Chinese (zh)
Other versions
TW202503733A (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 TW112124450A priority Critical patent/TWI868764B/en
Application granted granted Critical
Publication of TWI868764B publication Critical patent/TWI868764B/en
Publication of TW202503733A publication Critical patent/TW202503733A/en

Links

Images

Landscapes

  • Circuit For Audible Band Transducer (AREA)
  • Reduction Or Emphasis Of Bandwidth Of Signals (AREA)

Abstract

An audio signal processing device adapted to receive an input audio signal to generate an output audio signal accordingly. The audio signal processing device comprises a controller and a coded. The controller has a storage unit for storing a first parameter set and a second parameter set. The controller receives a selecting signal and selecting one of the first parameter set and the second parameter set as a control parameter set to be output according to the selecting signal. The codec receives the input audio signal and the control parameter set, and converts the input audio signal into the output audio signal according to the control parameter set. Wherein, the first parameter set is characterized with at least one enhanced high-order harmonic for the output audio signal, and the second parameter set is different from the first parameter set.

Description

音訊處理裝置以及音訊處理方法Audio processing device and audio processing method

本案是有關於一種訊號處理裝置以及處理方法,尤其是關於一種音訊處理裝置以及音訊處理方法。The present invention relates to a signal processing device and a processing method, and more particularly to an audio processing device and an audio processing method.

對於音樂愛好者而言,真空管放大器與電晶體放大器所帶來的聽覺感受截然不同。For music lovers, the auditory experience brought by vacuum tube amplifiers and transistor amplifiers is completely different.

傳統上,如果要提供真空管放大器的聽覺感受,就必須使用實體真空管放大器來達成。不過,真空管會佔用相當大的電路板板面面積,且真空管還有使用前需預熱以及使用壽命短等缺點。Traditionally, if you want to provide the auditory experience of a vacuum tube amplifier, you must use a physical vacuum tube amplifier to achieve it. However, vacuum tubes take up a considerable amount of circuit board area, and vacuum tubes also have disadvantages such as needing to be preheated before use and having a short service life.

本案提供一種音訊處理裝置,適於接收一輸入音訊,並依據輸入音訊產生一輸出音訊。此音訊處理裝置包含一控制器以及一解編碼器(codec)。控制器包含一儲存單元,儲存單元儲存一第一參數組以及一第二參數組。控制器接收一選擇訊號,並依據選擇訊號在第一參數組以及第二參數組中,選擇其中之一做為一控制參數組向外輸出。解編碼器接收輸入音訊,且電性耦接於控制器以接收控制參數組,並依據控制參數組轉換輸入音訊以產生輸出音訊。其中,第一參數組係強化解編碼器所產生之輸出音訊之至少一高次諧波所對應之參數組,第二參數組不同於第一參數組。The present case provides an audio processing device, which is suitable for receiving an input audio signal and generating an output audio signal according to the input audio signal. The audio processing device includes a controller and a decoder (codec). The controller includes a storage unit, and the storage unit stores a first parameter set and a second parameter set. The controller receives a selection signal, and selects one of the first parameter set and the second parameter set as a control parameter set to output according to the selection signal. The decoder receives the input audio signal, and is electrically coupled to the controller to receive the control parameter set, and converts the input audio signal according to the control parameter set to generate the output audio signal. Among them, the first parameter set is a parameter set corresponding to at least one higher-order harmonic of the output audio signal generated by the enhanced decoder, and the second parameter set is different from the first parameter set.

本案並提供一種音訊處理方法,適用於一解編碼器,解編碼器接收一輸入音訊,並依據一控制參數組轉換輸入音訊以產生一輸出音訊。此音訊處理方法包含提供一弦波訊號作為輸入音訊;找出解編碼器產生具有強化之至少一高次弦波之輸出音訊所對應之一第一參數組;以及依據一選擇訊號,選擇第一參數組或是一第二參數組作為控制參數組,第二參數組不同於第一參數組。The invention also provides an audio processing method, which is applicable to a decoder, wherein the decoder receives an input audio signal and converts the input audio signal according to a control parameter set to generate an output audio signal. The audio processing method includes providing a sine wave signal as the input audio signal; finding a first parameter set corresponding to the output audio signal having at least one enhanced high-order sine wave generated by the decoder; and selecting the first parameter set or a second parameter set as the control parameter set according to a selection signal, wherein the second parameter set is different from the first parameter set.

本案之音訊處理裝置與音訊處理方法可以利用第一參數組有效模擬出真空管音感,而不需使用實體真空管放大器,因而可以有效縮減音訊處理裝置所佔據之空間,同時也可以避免因為使用真空管而衍生之使用上的問題。其次,本案之音訊處理裝置與音訊處理方法除了第一參數組之外還有第二參數組可用於將輸入音訊轉換為輸出音訊,有利於提供使用者選擇上的彈性。The audio processing device and the audio processing method of the present case can effectively simulate the sound of a vacuum tube by using the first parameter set without using a physical vacuum tube amplifier, thereby effectively reducing the space occupied by the audio processing device and avoiding the problems in use caused by the use of vacuum tubes. Secondly, in addition to the first parameter set, the audio processing device and the audio processing method of the present case also have a second parameter set that can be used to convert input audio into output audio, which is beneficial to provide users with flexibility in selection.

下面將結合示意圖對本案的具體實施方式進行更詳細的描述。根據下列描述和申請專利範圍,本案的優點和特徵將更清楚。需說明的是,圖式均採用非常簡化的形式且均使用非精準的比例,僅用以方便、明晰地輔助說明本案實施例的目的。The specific implementation of the present invention will be described in more detail below in conjunction with the schematic diagram. The advantages and features of the present invention will become clearer based on the following description and the scope of the patent application. It should be noted that the diagrams are all in a very simplified form and are not in exact proportions, and are only used to conveniently and clearly assist in explaining the purpose of the present invention.

第一圖係依據本案一實施例所提供之音訊處理裝置100之方塊示意圖。此音訊處理裝置100適於設置於手機、平板、筆記型電腦等內部空間受限之電子裝置。The first figure is a block diagram of an audio processing device 100 provided according to an embodiment of the present invention. The audio processing device 100 is suitable for being installed in electronic devices with limited internal space such as mobile phones, tablets, and laptops.

如圖中所示,音訊處理裝置100包含一控制器120以及一解編碼器(codec)140。此音訊處理裝置100適於接收一輸入音訊S1,並依據輸入音訊S1產生一輸出音訊S2。As shown in the figure, the audio processing device 100 includes a controller 120 and a codec 140. The audio processing device 100 is adapted to receive an input audio signal S1 and generate an output audio signal S2 according to the input audio signal S1.

控制器120包含一儲存單元122,儲存單元122儲存有一第一參數組PS1以及一第二參數組PS2。第一參數組PS1不同於第二參數組PS2。一實施例中,此控制器120可以是一控制晶片。The controller 120 includes a storage unit 122. The storage unit 122 stores a first parameter set PS1 and a second parameter set PS2. The first parameter set PS1 is different from the second parameter set PS2. In one embodiment, the controller 120 may be a control chip.

控制器120接收一選擇訊號S3,並依據選擇訊號S3在第一參數組PS1以及第二參數組PS2中,選擇其中之一做為一控制參數組PSC向外輸出。The controller 120 receives a selection signal S3, and selects one of the first parameter set PS1 and the second parameter set PS2 as a control parameter set PSC to be outputted according to the selection signal S3.

解編碼器140接收輸入音訊S1,且電性耦接於控制器120以接收控制參數組PSC。解編碼器140會依據控制參數組PSC轉換輸入音訊S1以產生輸出音訊S2。輸入音訊S1係一數位訊號。輸入音訊S1可以是來自於一音訊檔案或是一視訊檔案。輸出音訊S2係一類比訊號,適於驅動揚聲器等聲音產生裝置。一實施例中,輸出音訊S2可包含一左聲道類比訊號S2L以及一右聲道類比訊號S2R以驅動揚聲器產生雙聲道聲音。The decoder 140 receives the input audio signal S1 and is electrically coupled to the controller 120 to receive the control parameter set PSC. The decoder 140 converts the input audio signal S1 according to the control parameter set PSC to generate the output audio signal S2. The input audio signal S1 is a digital signal. The input audio signal S1 can be from an audio file or a video file. The output audio signal S2 is an analog signal suitable for driving a sound generating device such as a speaker. In one embodiment, the output audio signal S2 may include a left channel analog signal S2L and a right channel analog signal S2R to drive the speaker to generate dual channel sound.

第一參數組PS1所具有之諧波補償參數係用於強化解編碼器140所產生之輸出音訊S2之至少一高次諧波,例如強化解編碼器140所產生之輸出音訊S2之二次諧波以及三次諧波。The harmonic compensation parameters of the first parameter set PS1 are used to enhance at least one higher-order harmonic of the output audio signal S2 generated by the decoder 140 , for example, to enhance the second-order harmonic and the third-order harmonic of the output audio signal S2 generated by the decoder 140 .

第二參數組PS2之所有諧波補償參數則是設定為零,也就是維持解編碼器140既有的轉換設定。不過亦不限於此。其他實施例中,第二參數組PS2所具有之諧波補償參數也可以設定為用於弱化解編碼器140所產生之輸出音訊S2之至少一高次諧波,以凸顯第一參數組PS1與第二參數組PS2之差異。All the harmonic compensation parameters of the second parameter set PS2 are set to zero, that is, the existing conversion settings of the decoder 140 are maintained. However, this is not limited to this. In other embodiments, the harmonic compensation parameters of the second parameter set PS2 can also be set to weaken at least one high-order harmonic of the output audio signal S2 generated by the decoder 140 to highlight the difference between the first parameter set PS1 and the second parameter set PS2.

相較於選擇第二參數組PS2作為控制參數組PSC,選擇第一參數組PS1做為控制參數組PSC所產生之輸出音訊S2在維持基波(或一次諧波)強度的情況下,會有較強之高次諧波。換言之,相較於第一參數組PS1,選擇第二參數組PS2做為控制參數組PSC所產生之輸出音訊S2在維持基波(或一次諧波)強度的情況下,會有較弱之高次諧波。Compared to selecting the second parameter set PS2 as the control parameter set PSC, the output audio signal S2 generated by selecting the first parameter set PS1 as the control parameter set PSC will have stronger higher-order harmonics while maintaining the strength of the fundamental wave (or first harmonic wave). In other words, compared to the first parameter set PS1, the output audio signal S2 generated by selecting the second parameter set PS2 as the control parameter set PSC will have weaker higher-order harmonics while maintaining the strength of the fundamental wave (or first harmonic wave).

一實施例中,第一參數組PS1可設定為輸入音訊S1為一弦波訊號時,解編碼器140產生具有最大之二次諧波與/或三次諧波之輸出音訊S2所對應之參數組。第一參數組PS1可包含一左聲道二次諧波補償參數、一左聲道三次諧波補償參數、一右聲道二次諧波補償參數以及一右聲道三次諧波補償參數,分別對應於左聲道之二次與三次諧波以及右聲道之二次與三次諧波之強度。此弦波訊號之頻率設定於聽覺頻率範圍內,例如1kHz。In one embodiment, the first parameter set PS1 can be set to a parameter set corresponding to the output audio signal S2 having the maximum second harmonic and/or third harmonic generated by the decoder 140 when the input audio signal S1 is a sine wave signal. The first parameter set PS1 can include a left channel second harmonic compensation parameter, a left channel third harmonic compensation parameter, a right channel second harmonic compensation parameter, and a right channel third harmonic compensation parameter, which correspond to the strength of the second and third harmonics of the left channel and the second and third harmonics of the right channel, respectively. The frequency of the sine wave signal is set within the audible frequency range, such as 1kHz.

一實施例中,第二參數組PS2係輸入音訊S1為弦波訊號時,解編碼器140產生具有最小之總諧波失真(total harmonic distortion, THD)加噪聲(Noise)所對應之參數組。也就是說,第二參數組PS2是使輸出音訊S2儘量吻合於輸入音訊S1之參數組。In one embodiment, the second parameter set PS2 is a parameter set corresponding to the minimum total harmonic distortion (THD) plus noise generated by the decoder 140 when the input audio signal S1 is a sine wave signal. In other words, the second parameter set PS2 is a parameter set that makes the output audio signal S2 match the input audio signal S1 as much as possible.

一實施例中,第一參數組PS1可設定為一預設參數組,在控制器120未接收到選擇訊號S3的情況下,控制器120會選擇第一參數組PS1做為控制參數組PSC向外輸出。解編碼器140則會依據第一參數組PS1產生輸出音訊S2。In one embodiment, the first parameter set PS1 can be set as a default parameter set. When the controller 120 does not receive the selection signal S3, the controller 120 selects the first parameter set PS1 as the control parameter set PSC to be output. The decoder 140 generates the output audio signal S2 according to the first parameter set PS1.

第二圖係第一圖中之解編碼器140一實施例之方塊示意圖。此解編碼器140適用於雙聲道之音訊處理。The second figure is a block diagram of an embodiment of the decoder 140 in the first figure. The decoder 140 is suitable for dual-channel audio processing.

如圖中所示,解編碼器140包含一暫存器(register)142、一調變單元144、一左聲道數位類比轉換單元146以及一右聲道數位類比轉換單元148。As shown in the figure, the decoder 140 includes a register 142 , a modulation unit 144 , a left-channel digital-to-analog conversion unit 146 , and a right-channel digital-to-analog conversion unit 148 .

暫存器142內儲存有控制參數組PSC。此控制參數組PSC可以是來自於控制器120之第一參數組PS1或是第二參數組PS2。The register 142 stores a control parameter set PSC. The control parameter set PSC may be the first parameter set PS1 or the second parameter set PS2 from the controller 120.

調變單元144係由暫存器142取得控制參數組PSC,並依據控制參數組PSC調整輸入音訊S1,以產生一左聲道數位訊號SDL以及一右聲道數位訊號SDR。The modulation unit 144 obtains the control parameter set PSC from the register 142 and adjusts the input audio signal S1 according to the control parameter set PSC to generate a left channel digital signal SDL and a right channel digital signal SDR.

左聲道數位類比轉換單元146接收來自調變單元144之左聲道數位訊號SDL,並產生左聲道類比訊號S2L。右聲道數位類比轉換單元148接收來自調變單元144之右聲道數位訊號SDR,並產生右聲道類比訊號S2R。The left channel DAC unit 146 receives the left channel digital signal SDL from the modulation unit 144 and generates a left channel analog signal S2L. The right channel DAC unit 148 receives the right channel digital signal SDR from the modulation unit 144 and generates a right channel analog signal S2R.

前述左聲道類比訊號S2L以及右聲道類比訊號S2R即為輸出音訊S2,可直接用於驅動揚聲器或是透過放大器(圖未示)放大後再用於驅動揚聲器。The aforementioned left channel analog signal S2L and right channel analog signal S2R are the output audio signal S2, which can be used to drive the speaker directly or be amplified by an amplifier (not shown) and then used to drive the speaker.

第三圖係依據本案一實施例所提供之音訊處理方法之流程圖。The third figure is a flow chart of an audio processing method provided according to an embodiment of the present invention.

此音訊處理方法適用於第一圖中之音訊處理裝置100。此音訊處理方法包含以下步驟。This audio processing method is applicable to the audio processing device 100 in the first figure. This audio processing method includes the following steps.

首先,如步驟S320所述,提供一弦波訊號作為輸入音訊S1。隨後,如步驟S340所述,找出解編碼器140產生具有強化之至少一高次弦波之輸出音訊S2所對應之一第一參數組PS1。此設定程序可由第一圖中之控制器120與解編碼器140執行。一實施例中,此第一參數組PS1係儲存於控制器120之儲存單元122中。一實施例中,此步驟係找出解編碼器140產生具有最大之至少一高次弦波之輸出音訊S2所對應之第一參數組PS1。First, as described in step S320, a sine wave signal is provided as an input audio signal S1. Then, as described in step S340, a first parameter set PS1 corresponding to the output audio signal S2 having at least one enhanced high-order sine wave generated by the decoder 140 is found. This setting procedure can be executed by the controller 120 and the decoder 140 in the first figure. In one embodiment, this first parameter set PS1 is stored in the storage unit 122 of the controller 120. In one embodiment, this step is to find the first parameter set PS1 corresponding to the output audio signal S2 having at least one high-order sine wave generated by the decoder 140 with the maximum.

隨後,在音訊轉換程序中,如步驟S360所述,依據一選擇訊號S3,選擇第一參數組PS1或是第二參數組PS2作為控制參數組PSC。第二參數組PS2不同於第一參數組PS1。具體而言,此步驟會選擇第一參數組PS1或是第二參數組PS2儲存於解編碼器140之暫存器142作為控制參數組PSC。一實施例中,第二參數組PS2之所有諧波補償參數則是設定為零,也就是維持解編碼器140既有的轉換設定。步驟S360可由第一圖中之控制器120執行。接下來,解編碼器140就會依據控制參數組PSC將輸入音訊S1轉換產生輸出音訊S2。Subsequently, in the audio conversion process, as described in step S360, according to a selection signal S3, the first parameter set PS1 or the second parameter set PS2 is selected as the control parameter set PSC. The second parameter set PS2 is different from the first parameter set PS1. Specifically, this step selects the first parameter set PS1 or the second parameter set PS2 to be stored in the register 142 of the decoder 140 as the control parameter set PSC. In one embodiment, all harmonic compensation parameters of the second parameter set PS2 are set to zero, that is, the existing conversion settings of the decoder 140 are maintained. Step S360 can be executed by the controller 120 in the first figure. Next, the decoder 140 will convert the input audio S1 according to the control parameter set PSC to generate the output audio S2.

第四圖顯示第三圖中之步驟S340之一實施例。FIG. 4 shows an implementation example of step S340 in FIG. 3 .

承接步驟S320,首先,如步驟S420所述,將解編碼器140之暫存器142歸零。具體來說,就是將解編碼器140之暫存器142中,對應於儲存控制參數組PSC之暫存位置歸零。Following step S320, first, as described in step S420, the register 142 of the decoder 140 is reset to zero. Specifically, the register 142 of the decoder 140 corresponding to the storage position of the control parameter set PSC is reset to zero.

接下來,如步驟S440所述,逐步調整二次諧波補償參數並輸入暫存器142,直到解編碼器140產生之輸出音訊S2在二次諧波頻率處的波峰具有最大強度。此二次諧波補償參數可包含左聲道二次諧波補償參數以及右聲道二次諧波補償參數。舉例來說,可逐步增加二次諧波補償參數之數值,直到二次諧波頻率處的波峰反轉降低。反轉前最後一階的數值即為二次諧波補償參數。Next, as described in step S440, the secondary harmonic compensation parameter is gradually adjusted and input into the register 142 until the peak of the output audio signal S2 generated by the decoder 140 at the secondary harmonic frequency has the maximum strength. The secondary harmonic compensation parameter may include a left channel secondary harmonic compensation parameter and a right channel secondary harmonic compensation parameter. For example, the value of the secondary harmonic compensation parameter may be gradually increased until the peak at the secondary harmonic frequency is reversed and reduced. The value of the last order before the reversal is the secondary harmonic compensation parameter.

接下來,如步驟S460所述,逐步調整三次諧波補償參數並輸入暫存器142,直到解編碼器140產生之輸出音訊S2在三次諧波頻率處的波峰具有最大強度。此三次諧波補償參數可包含左聲道三次諧波補償參數以及右聲道三次諧波補償參數。舉例來說,可逐步增加三次諧波補償參數之數值,直到三次諧波頻率處的波峰反轉降低。波峰反轉降低前最後一階的數值即為三次諧波補償參數。Next, as described in step S460, the cubic harmonic compensation parameter is gradually adjusted and input into the register 142 until the peak of the output audio signal S2 generated by the decoder 140 at the cubic harmonic frequency has the maximum strength. The cubic harmonic compensation parameter may include a left channel cubic harmonic compensation parameter and a right channel cubic harmonic compensation parameter. For example, the value of the cubic harmonic compensation parameter may be gradually increased until the peak inversion at the cubic harmonic frequency is reduced. The value of the last order before the peak inversion is reduced is the cubic harmonic compensation parameter.

前述步驟S440與S460所找出的二次諧波補償參數以及三次諧波補償參數即可作為第一參數組PS1。The second harmonic compensation parameters and the third harmonic compensation parameters found in the aforementioned steps S440 and S460 can be used as the first parameter set PS1.

一實施例中,前述二次諧波補償參數以及三次諧波補償參數係儲存為一位元組(Byte),也就是八個位元,對應至一個十六進制的高位元參數以及一個十六進制的低位元參數。前述步驟S440與S460所進行的調整會先找出對應於高位元參數之數值,再找出對應於低位元參數之數值。In one embodiment, the aforementioned second harmonic compensation parameter and the third harmonic compensation parameter are stored as a byte, that is, eight bits, corresponding to a hexadecimal high-order parameter and a hexadecimal low-order parameter. The adjustment performed in the aforementioned steps S440 and S460 first finds the value corresponding to the high-order parameter, and then finds the value corresponding to the low-order parameter.

第五A圖顯示輸入音訊S1為1kHz之弦波訊號時,依據第二參數組PS2轉換產生之輸出音訊S2之波型圖。第五B圖顯示輸入音訊S1為1kHz之弦波訊號時,依據第一參數組PS1轉換產生之輸出音訊S2之波型圖。第五C圖顯示輸入音訊S1為1kHz之弦波訊號時,利用真空管轉換產生之輸出音訊S2之波型圖。第二參數組PS2係輸入音訊S1為弦波訊號時,解編碼器140產生具有最小之總諧波失真加噪聲所對應之參數組。第一參數組PS1係輸入音訊S1為弦波訊號時,解編碼器140產生具有最大之二次諧波與三次諧波之輸出音訊S2所對應之參數組。Figure 5A shows the waveform of the output audio signal S2 generated by the conversion according to the second parameter set PS2 when the input audio signal S1 is a 1kHz sine wave signal. Figure 5B shows the waveform of the output audio signal S2 generated by the conversion according to the first parameter set PS1 when the input audio signal S1 is a 1kHz sine wave signal. Figure 5C shows the waveform of the output audio signal S2 generated by the vacuum tube conversion when the input audio signal S1 is a 1kHz sine wave signal. The second parameter set PS2 is the parameter set corresponding to the output audio signal S2 with the minimum total harmonic distortion plus noise generated by the decoder 140 when the input audio signal S1 is a sine wave signal. The first parameter set PS1 is the parameter set corresponding to the output audio signal S2 with the maximum second and third harmonics generated by the decoder 140 when the input audio signal S1 is a sine wave signal.

圖中之橫軸為頻率,其單位為Hz,縱軸為強度,其單位為相對分貝(dbr)。圖中僅顯示雙聲道音訊中之左聲道以簡化說明。The horizontal axis of the graph is frequency, with the unit being Hz, and the vertical axis is intensity, with the unit being relative decibels (dbr). The graph only shows the left channel of a two-channel audio signal to simplify the explanation.

第五A至五C圖之波型在對應於基波頻率(也就是1kHz)以及二次諧波之頻率的位置分別具有基波波峰A1, B1, C1以及二次諧波波峰A2, B2, C2。基波波峰A1, B1, C1都是整個波型中的最高峰。The waveforms in Figures 5A to 5C have fundamental wave peaks A1, B1, C1 and secondary harmonic peaks A2, B2, C2 at positions corresponding to the fundamental wave frequency (i.e. 1kHz) and the secondary harmonic frequency. The fundamental wave peaks A1, B1, C1 are the highest peaks in the entire waveform.

如圖中所示,第五A圖中之基波波峰A1與二次諧波波峰A2之強度值大致為-32與-95,第五B圖中之基波波峰B1與二次諧波波峰B2之強度值大致為-32與-75。由此觀之,在基波波峰A1, B1強度相同的情況下,第五A圖中之二次諧波波峰A2之強度明顯小於第五B圖中之二次諧波波峰B2之強度。相較之下,第五C圖中之基波波峰C1與二次諧波波峰C2之強度值則是類似於第五B圖中之基波波峰B1與二次諧波波峰B2之強度值。因此,利用第一參數組PS1所產生之輸出音訊S2(對應於第五B圖之波型)以及利用第二參數組PS2所產生之輸出音訊S2(對應於第五A圖之波型)截然不同,且利用第一參數組PS1轉換產生之輸出音訊S2(對應於第五B圖之波型)可以有效地模擬真空管音感(對應於第五C圖之波型)。As shown in the figure, the intensity values of the fundamental wave peak A1 and the secondary harmonic wave peak A2 in Figure 5A are approximately -32 and -95, and the intensity values of the fundamental wave peak B1 and the secondary harmonic wave peak B2 in Figure 5B are approximately -32 and -75. From this point of view, when the intensity of the fundamental wave peaks A1 and B1 are the same, the intensity of the secondary harmonic wave peak A2 in Figure 5A is significantly smaller than the intensity of the secondary harmonic wave peak B2 in Figure 5B. In contrast, the intensity values of the fundamental wave peak C1 and the secondary harmonic wave peak C2 in Figure 5C are similar to the intensity values of the fundamental wave peak B1 and the secondary harmonic wave peak B2 in Figure 5B. Therefore, the output audio S2 generated by the first parameter set PS1 (corresponding to the waveform of Figure 5B) and the output audio S2 generated by the second parameter set PS2 (corresponding to the waveform of Figure 5A) are completely different, and the output audio S2 (corresponding to the waveform of Figure 5B) generated by conversion using the first parameter set PS1 can effectively simulate the sound of the vacuum tube (corresponding to the waveform of Figure 5C).

本案之音訊處理裝置100與音訊處理方法可以利用解編碼器搭配第一參數組PS1有效模擬出真空管音感,而不需使用實體真空管放大器,因而可以有效縮減音訊處理裝置100所佔據之空間,同時也可以避免因為使用真空管而衍生之使用上的問題。其次,本案之音訊處理裝置100與音訊處理方法除了第一參數組PS1之外還有第二參數組PS2可用於將輸入音訊S1轉換為輸出音訊S2,有利於提供使用者選擇上的彈性。The audio processing device 100 and the audio processing method of the present case can effectively simulate the sound of a vacuum tube by using a decoder in combination with the first parameter set PS1, without using a physical vacuum tube amplifier, thereby effectively reducing the space occupied by the audio processing device 100 and avoiding the problems in use caused by the use of vacuum tubes. Secondly, in addition to the first parameter set PS1, the audio processing device 100 and the audio processing method of the present case also have a second parameter set PS2 that can be used to convert the input audio signal S1 into the output audio signal S2, which is beneficial to provide users with flexibility in selection.

上述僅為本案較佳之實施例而已,並不對本案進行任何限制。任何所屬技術領域的技術人員,在不脫離本案的技術手段的範圍內,對本案揭露的技術手段和技術內容做任何形式的等同替換或修改等變動,均屬未脫離本案的技術手段的內容,仍屬於本案的保護範圍之內。The above is only the preferred embodiment of this case and does not limit this case in any way. Any technical personnel in the relevant technical field, within the scope of the technical means of this case, make any form of equivalent replacement or modification to the technical means and technical content disclosed in this case, which is within the scope of the technical means of this case and still falls within the scope of protection of this case.

100:音訊處理裝置100: Audio processing device

120:控制器120: Controller

122:儲存單元122: Storage unit

140:解編碼器140: Decoder

142:暫存器142: Register

144:調變單元144: Modulation unit

146:左聲道數位類比轉換單元146: Left channel digital-to-analog converter

148:右聲道數位類比轉換單元148: Right channel digital-to-analog converter

S1:輸入音訊S1: Input Audio

S2:輸出音訊S2: Output audio

PS1:第一參數組PS1: First parameter set

PS2:第二參數組PS2: Second parameter set

PSC:控制參數組PSC: Control Parameter Group

S3:選擇訊號S3: Select signal

SDL:左聲道數位訊號SDL: Left channel digital signal

SDR:右聲道數位訊號SDR: right channel digital signal

S2L:左聲道類比訊號S2L: Left channel analog signal

S2R:右聲道類比訊號S2R: right channel analog signal

S320,S340,S360,S420,S440,S460:步驟S320,S340,S360,S420,S440,S460: Steps

A1,B1,C1:基波波峰A1, B1, C1: fundamental wave peak

A2,B2,C2:二次諧波波峰A2, B2, C2: Second harmonic peaks

第一圖係依據本案一實施例所提供之音訊處理裝置之方塊示意圖; 第二圖係第一圖中之解編碼器一實施例之方塊示意圖; 第三圖係依據本案一實施例所提供之音訊處理方法之流程圖; 第四圖顯示第三圖中之步驟S320之一實施例; 第五A圖顯示輸入音訊為1kHz之弦波訊號時,依據第二參數組轉換產生之輸出音訊之波型圖; 第五B圖顯示輸入音訊為1kHz之弦波訊號時,依據第一參數組轉換產生之輸出音訊之波型圖;以及 第五C圖顯示輸入音訊為1kHz之弦波訊號時,依據利用真空管器產生之輸出音訊之波型圖。 The first figure is a block diagram of an audio processing device provided according to an embodiment of the present invention; The second figure is a block diagram of an embodiment of the decoder in the first figure; The third figure is a flow chart of an audio processing method provided according to an embodiment of the present invention; The fourth figure shows an embodiment of step S320 in the third figure; The fifth figure A shows a waveform diagram of an output audio generated by conversion according to the second parameter set when the input audio is a 1kHz sine wave signal; The fifth figure B shows a waveform diagram of an output audio generated by conversion according to the first parameter set when the input audio is a 1kHz sine wave signal; and The fifth figure C shows a waveform diagram of an output audio generated by using a vacuum tube device when the input audio is a 1kHz sine wave signal.

100:音訊處理裝置 100: Audio processing device

120:控制器 120: Controller

122:儲存單元 122: Storage unit

140:解編碼器 140: Decoder

S1:輸入音訊 S1: Input audio

S2:輸出音訊 S2: Output audio

PS1:第一參數組 PS1: First parameter set

PS2:第二參數組 PS2: Second parameter set

PSC:控制參數組 PSC: Control Parameter Group

S3:選擇訊號 S3: Select signal

Claims (12)

一種音訊處理裝置,適於接收一輸入音訊,並依據該輸入音訊產生一輸出音訊,該音訊處理裝置包含:一控制器,包含一儲存單元,該儲存單元儲存一第一參數組以及一第二參數組,該控制器接收一選擇訊號,並依據該選擇訊號在該第一參數組以及該第二參數組中,選擇其中之一做為一控制參數組向外輸出;一解編碼器,接收該輸入音訊,且電性耦接於該控制器以接收該控制參數組,並依據該控制參數組轉換該輸入音訊以產生該輸出音訊;其中,該第一參數組係強化該解編碼器所產生之該輸出音訊之至少一高次諧波所對應之參數組,該第二參數組不同於該第一參數組;以及其中,該第二參數組之所有諧波補償參數均為零,或者該第二參數組係該輸入音訊為一弦波訊號時,該解編碼器產生具有最小之總諧波失真(total harmonic distortion,THD)加噪聲(Noise)所對應之參數組。 An audio processing device is suitable for receiving an input audio signal and generating an output audio signal according to the input audio signal. The audio processing device comprises: a controller, comprising a storage unit, the storage unit storing a first parameter set and a second parameter set, the controller receiving a selection signal, and selecting one of the first parameter set and the second parameter set as a control parameter set to be outputted according to the selection signal; a decoder, receiving the input audio signal and electrically coupled to the controller to generate an output audio signal; Receive the control parameter set, and convert the input audio signal according to the control parameter set to generate the output audio signal; wherein the first parameter set is a parameter set corresponding to strengthening at least one higher harmonic of the output audio signal generated by the decoder, and the second parameter set is different from the first parameter set; and wherein all harmonic compensation parameters of the second parameter set are zero, or the second parameter set is a parameter set corresponding to the decoder generating the minimum total harmonic distortion (THD) plus noise when the input audio signal is a sine wave signal. 如請求項1所述之音訊處理裝置,其中,該至少一高次諧波包含二次諧波以及三次諧波。 An audio processing device as described in claim 1, wherein the at least one high-order harmonic includes a second-order harmonic and a third-order harmonic. 如請求項1所述之音訊處理裝置,其中,該第二參數組係對應於弱化該解編碼器所產生之該輸出音訊之該至少一高次諧波之參數組。 An audio processing device as described in claim 1, wherein the second parameter set corresponds to a parameter set for weakening the at least one higher harmonic of the output audio generated by the decoder. 如請求項1所述之音訊處理裝置,其中,該輸入音訊係一數位訊號,該輸出音訊係一類比訊號。 An audio processing device as described in claim 1, wherein the input audio is a digital signal and the output audio is an analog signal. 如請求項1所述之音訊處理裝置,其中,該輸出音訊包含一左聲道類比訊號以及一右聲道類比訊號。 An audio processing device as described in claim 1, wherein the output audio includes a left channel analog signal and a right channel analog signal. 如請求項5所述之音訊處理裝置,其中,該解編碼器包含:一暫存器,儲存該控制參數組;一調變單元,由該暫存器取得該控制參數組,並依據該控制參數組調整該輸入音訊,以產生一左聲道數位訊號以及一右聲道數位訊號;一左聲道數位類比轉換單元,接收該左聲道數位訊號,並產生該左聲道類比訊號;以及一右聲道數位類比轉換單元,接收該右聲道數位訊號,並產生該右聲道類比訊號。 The audio processing device as described in claim 5, wherein the decoder comprises: a register storing the control parameter set; a modulation unit obtaining the control parameter set from the register and adjusting the input audio according to the control parameter set to generate a left channel digital signal and a right channel digital signal; a left channel digital-to-analog conversion unit receiving the left channel digital signal and generating the left channel analog signal; and a right channel digital-to-analog conversion unit receiving the right channel digital signal and generating the right channel analog signal. 如請求項1所述之音訊處理裝置,其中,該第一參數組包含一左聲道二次諧波補償參數、一左聲道三次諧波補償參數,一右聲道二次諧波補償參數以及一右聲道三次諧波補償參數。 An audio processing device as described in claim 1, wherein the first parameter set includes a left channel second harmonic compensation parameter, a left channel third harmonic compensation parameter, a right channel second harmonic compensation parameter, and a right channel third harmonic compensation parameter. 如請求項1所述之音訊處理裝置,其中,該第一參數組係該輸入音訊為該弦波訊號時,該解編碼器產生具有最大之至少一高次弦波之該輸出音訊所對應之參數組。 The audio processing device as described in claim 1, wherein the first parameter set is a parameter set corresponding to the output audio signal having at least one maximum high-order sine wave generated by the decoder when the input audio signal is the sine wave signal. 如請求項8所述之音訊處理裝置,其中,該弦波訊號之頻率為1kHz。 An audio processing device as described in claim 8, wherein the frequency of the sine wave signal is 1kHz. 如請求項1所述之音訊處理裝置,其中,該第一參數組係一預設參數組。 An audio processing device as described in claim 1, wherein the first parameter set is a default parameter set. 一種音訊處理方法,適用於一解編碼器(codec),該解編碼器接收一輸入音訊,並依據一控制參數組轉換該輸入音訊以產生一輸出音訊,該音訊處理方法包含:提供一弦波訊號作為該輸入音訊;找出該解編碼器產生具有強化之至少一高次弦波之該輸出音訊所對應之一第一參數組;以及依據一選擇訊號,選擇該第一參數組或是一第二參數組作為該控制參數組,該第二參數組不同於該第一參數組;其中,該第二參數組之所有諧波補償參數均為零,或者該第二參數組係該解編碼器產生具有最小之總諧波失真加噪聲所對應之參數組。 An audio processing method is applicable to a decoder (codec), the decoder receives an input audio signal, and converts the input audio signal according to a control parameter set to generate an output audio signal, the audio processing method comprises: providing a sine wave signal as the input audio signal; finding a first parameter set corresponding to the output audio signal having at least one enhanced high-order sine wave generated by the decoder; and selecting the first parameter set or a second parameter set as the control parameter set according to a selection signal, the second parameter set being different from the first parameter set; wherein all harmonic compensation parameters of the second parameter set are zero, or the second parameter set is a parameter set corresponding to the decoder generating a signal having the minimum total harmonic distortion plus noise. 如請求項11所述之音訊處理方法,其中,該弦波訊號之頻率為1kHz。An audio processing method as described in claim 11, wherein the frequency of the sine wave signal is 1 kHz.
TW112124450A 2023-06-30 2023-06-30 Audio signal processing device and audio signal processing method TWI868764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112124450A TWI868764B (en) 2023-06-30 2023-06-30 Audio signal processing device and audio signal processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112124450A TWI868764B (en) 2023-06-30 2023-06-30 Audio signal processing device and audio signal processing method

Publications (2)

Publication Number Publication Date
TWI868764B true TWI868764B (en) 2025-01-01
TW202503733A TW202503733A (en) 2025-01-16

Family

ID=95152135

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112124450A TWI868764B (en) 2023-06-30 2023-06-30 Audio signal processing device and audio signal processing method

Country Status (1)

Country Link
TW (1) TWI868764B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1672325A (en) * 2002-06-05 2005-09-21 索尼克焦点公司 Acoustical virtual reality engine and advanced techniques for enhancing delivered sound
TW200912894A (en) * 2007-09-07 2009-03-16 Ensky Technology Co Ltd Test apparatus and method for decrease noise influence in audio device testing process
US20180174583A1 (en) * 2016-12-21 2018-06-21 Avnera Corporation Low-power, always-listening, voice command detection and capture
CN105981102B (en) * 2014-02-13 2019-11-12 高通股份有限公司 Harmonic Bandwidth Extension of Audio Signals

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1672325A (en) * 2002-06-05 2005-09-21 索尼克焦点公司 Acoustical virtual reality engine and advanced techniques for enhancing delivered sound
TW200912894A (en) * 2007-09-07 2009-03-16 Ensky Technology Co Ltd Test apparatus and method for decrease noise influence in audio device testing process
CN105981102B (en) * 2014-02-13 2019-11-12 高通股份有限公司 Harmonic Bandwidth Extension of Audio Signals
US20180174583A1 (en) * 2016-12-21 2018-06-21 Avnera Corporation Low-power, always-listening, voice command detection and capture

Also Published As

Publication number Publication date
TW202503733A (en) 2025-01-16

Similar Documents

Publication Publication Date Title
CN103460716B (en) For the method and apparatus of Audio Signal Processing
TWI521981B (en) Control method of sound producing, sound producing apparatus, and portable apparatus
US8582784B2 (en) Method and device for extension of low frequency output from a loudspeaker
US9014397B2 (en) Signal processing device and signal processing method
US8386242B2 (en) Method, medium and apparatus enhancing a bass signal using an auditory property
US8737642B2 (en) Audio reproducing apparatus
JP6306713B2 (en) Reproduction loudness adjustment method and apparatus
JP2009524951A (en) System and method for improving the performance of a digital amplifier by adding an ultrasonic signal to an input audio signal
CN1369188A (en) Compensation system and method for sound reproduction
JP2005080314A (en) Non-linear distortion reduction method and apparatus
JP2016195439A (en) Frequency band compression using dynamic threshold
CN101166019A (en) audio reproduction equipment
CN101154931A (en) Signal Processing Equipment
JP2009021843A (en) Acoustic signal processing apparatus and acoustic signal processing method
CN103096211B (en) The filter circuit of microphone
JP6336830B2 (en) Level adjustment circuit, digital sound processor, audio amplifier integrated circuit, electronic equipment, audio signal automatic level adjustment method
TWI868764B (en) Audio signal processing device and audio signal processing method
JP2005502247A (en) Audio playback device
JP2005328531A (en) Speaker control circuit
JP2018163304A (en) Signal processing apparatus and active noise cancellation system
CN101023580A (en) Audio power amplifier ic and audio system equipped therewith
CN1989784A (en) Sound enhancement
JP2005051694A (en) Dodecahedron speaker system
US20120002824A1 (en) Audio equipment and a signal processing method thereof
JP5611029B2 (en) Acoustic device and output sound control method