TWI822030B - Noise shaping digital automatic gain control system - Google Patents

Noise shaping digital automatic gain control system Download PDF

Info

Publication number
TWI822030B
TWI822030B TW111116962A TW111116962A TWI822030B TW I822030 B TWI822030 B TW I822030B TW 111116962 A TW111116962 A TW 111116962A TW 111116962 A TW111116962 A TW 111116962A TW I822030 B TWI822030 B TW I822030B
Authority
TW
Taiwan
Prior art keywords
audio
gain
virtual
digital
output
Prior art date
Application number
TW111116962A
Other languages
Chinese (zh)
Other versions
TW202345143A (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 TW111116962A priority Critical patent/TWI822030B/en
Application granted granted Critical
Publication of TWI822030B publication Critical patent/TWI822030B/en
Publication of TW202345143A publication Critical patent/TW202345143A/en

Links

Images

Abstract

The present invention provides a noise-integrated digital automatic gain control system, comprising an audio receiving device, an analog-to-digital converter, a digital audio gain self-adaptive generating device, and a gain adjusting device. The analog-to-digital converter is used for converting the analog audio of the audio receiving device into digital audio. The digital audio gain adaptive generating device generates a virtual heave wave signal according to a feedback audio, and generates an output code according to the virtual heave wave signal and further converts it into a gain ratio, so that the discontinuous noise of the gain ratio is pushed to high frequencies , so that the resolution of the low frequency part is greatly improved, and the gain of the digital audio is controlled according to the gain ratio, converted into a playback audio, and then sent to the audio output device.

Description

雜訊整型式數位自動增益控制系統Noise integer digital automatic gain control system

本發明係涉及一種數位自動增益控制系統,尤指一種雜訊整型式數位自動增益控制系統。The invention relates to a digital automatic gain control system, and in particular to a noise integer type digital automatic gain control system.

自動增益控制(Automatic Gain Control)在各種行業中運用廣泛,尤其是運用在實際使用的音頻會議系統中,由於性別或講話者的習慣,會導致音頻系統輸出端的音量幅度產生巨大的差別,例如當講話者距離麥克風較遠時,會輸出較小的音量;講話者距離麥克風較近時,會輸出較大的音量。由於這樣的情況會使在相同會議中的所有與會者出現突然大聲/小聲的情況,而造成與會者的困擾。Automatic Gain Control (Automatic Gain Control) is widely used in various industries, especially in actual audio conferencing systems. Due to gender or speaker's habits, there will be a huge difference in the volume amplitude of the audio system output end, such as when When the speaker is farther away from the microphone, a lower volume will be output; when the speaker is closer to the microphone, a higher volume will be output. Because such a situation will cause all participants in the same conference to suddenly loudly/quietly sound, causing trouble to the participants.

藉此,使用自動增益控制能自動給予增益補償,當講話者聲音過大的時候,會自動降低增益,使會議中的聲音都維持在一定的音量下;反之,當講話者聲音過小的時候,會自動提升增益,使會議中的聲音都維持在一定的音量下上,藉此使與會者能夠順暢地進行會議。In this way, the use of automatic gain control can automatically provide gain compensation. When the speaker's voice is too loud, the gain will be automatically reduced to maintain the sound in the meeting at a certain volume; conversely, when the speaker's voice is too low, the gain will be automatically reduced. Automatically increase the gain to maintain the sound in the meeting at a certain volume, so that participants can conduct the meeting smoothly.

但自動增益控制調整會由於調整速率產生不順暢的情況,因此會使會議中的與會者感到不適。However, automatic gain control adjustment can cause discomfort to participants in the conference because of the uneven adjustment rate.

本發明的主要目的,在於提供一種雜訊整型式數位自動增益控制系統,包括一音訊接收裝置、一類比-數位轉換器、一數位音訊增益自適應生成裝置、以及一增益調整裝置。該音訊接收裝置用以接收聲音並將其轉換為類比音訊。該類比-數位轉換器連接至該音訊接收裝置,該類比-數位轉換器用以接收該類比音訊,並將其轉換為數位音訊。該數位音訊增益自適應生成裝置連接至該類比-數位轉換器以接收該數位音訊。該數位音訊增益自適應生成裝置包括一虛擬升降波生成模組、一連接至該虛擬升降波生成模組的雜訊整形模組、一連接至該雜訊整形模組的映射模組、以及一連接至該映射模組的增益調整模組,該虛擬升降波生成模組由一音訊回授裝置接收回授音訊並依據該回授音訊是否超出預設音量範圍輸出虛擬升降波訊號,該雜訊整形模組依據該虛擬升降波生成模組的該虛擬升降波訊號產生輸出代碼,該映射模組係依據該輸出代碼映射獲得更新後的增益倍率,其中,該雜訊整形模組的輸入及輸出係符合以下算式: ; 其中,x[n]為該虛擬升降波訊號於n階時的數值,y[n]為n階時的該輸出代碼,w[n]為x[n]及y[n]中間的轉移函數,Nbits_Quantizer()為多位階量化器的函式。該增益調整裝置係連接至該類比-數位轉換器以及該數位音訊增益自適應生成裝置,依據該增益倍率控制該數位音訊的增益,依據該增益將該數位音訊轉換成一播放音訊後傳送至一音訊輸出裝置。 The main purpose of the present invention is to provide a noise integer digital automatic gain control system, which includes an audio receiving device, an analog-to-digital converter, a digital audio gain adaptive generation device, and a gain adjustment device. The audio receiving device is used for receiving sound and converting it into analog audio. The analog-to-digital converter is connected to the audio receiving device, and the analog-to-digital converter is used to receive the analog audio and convert it into digital audio. The digital audio gain adaptive generation device is connected to the analog-to-digital converter to receive the digital audio. The digital audio gain adaptive generation device includes a virtual up and down wave generation module, a noise shaping module connected to the virtual up and down wave generation module, a mapping module connected to the noise shaping module, and a Connected to the gain adjustment module of the mapping module, the virtual up and down wave generation module receives feedback audio from an audio feedback device and outputs a virtual up and down wave signal based on whether the feedback audio exceeds the preset volume range. The noise The shaping module generates an output code based on the virtual up and down wave signal of the virtual up and down wave generation module, and the mapping module obtains an updated gain factor based on the output code mapping, wherein the input and output of the noise shaping module The system conforms to the following formula: ; ; Among them, x[n] is the value of the virtual up and down wave signal at nth level, y[n] is the output code at nth level, w[n] is the transition between x[n] and y[n] Function, Nbits_Quantizer() is the function of multi-level quantizer. The gain adjustment device is connected to the analog-to-digital converter and the digital audio gain adaptive generation device, controls the gain of the digital audio according to the gain factor, converts the digital audio into a playback audio according to the gain and then sends it to an audio output device.

綜上所述,比起習知技術,本發明可以經由雜訊整型將不連續的雜訊推到高頻,使得低頻部分的解析度提升,較先前技術能使調整過程較為平滑且迅速,避免音量調整速率所造成的不適。To sum up, compared with the conventional technology, the present invention can push discontinuous noise to high frequency through noise shaping, so that the resolution of the low frequency part is improved, and the adjustment process can be smoother and faster than the previous technology. Avoid discomfort caused by volume adjustment rate.

有關本發明之詳細說明及技術內容,現就配合圖式說明如下。再者,本發明中之圖式,為說明方便,其比例未必照實際比例繪製,該等圖式及其比例並非用以限制本創作之範圍,在此先行敘明。The detailed description and technical content of the present invention are described below with reference to the drawings. Furthermore, for the convenience of explanation, the proportions of the drawings in the present invention may not be drawn according to actual proportions. These drawings and their proportions are not intended to limit the scope of the present invention, and are explained here.

於本發明中所述的「裝置」、「器」、「模組」及其對應執行的功能,可以由單一晶片或複數個晶片的組合協同執行,該等晶片配置的數量非屬本發明所欲限定的範圍。此外,所述的晶片可以為但不限定於處理器(Processor)、中央處理器(Central Processing Unit, CPU)、微處理器(Microprocessor)、數位訊號處理器(Digital Signal Processor, DSP)、特殊應用積體電路(Application Specific Integrated Circuits, ASIC) 、可程式化邏輯裝置(Programmable Logic Device, PLD)等裝置的組合,於本發明中不予以限制。前述的晶片可各別或共有記憶單元,該記憶單元用以協助進行資料的保存。所述的記憶單元於一可行的實施例中可以為(但不限定於)快取記憶體(Cache memory)、動態隨機存取記憶體(DRAM)、持續性記憶體(Persistent Memory)等可以做為儲存資料和取出資料用途之裝置或其組合,於本發明中不予以限制。The "device", "device", "module" and the corresponding functions described in the present invention can be executed by a single chip or a combination of multiple chips. The number of these chip configurations is not limited to the present invention. The scope to be limited. In addition, the chip can be, but is not limited to, a processor (Processor), a Central Processing Unit (CPU), a microprocessor (Microprocessor), a Digital Signal Processor (DSP), a special application Combinations of integrated circuits (Application Specific Integrated Circuits, ASIC), programmable logic devices (Programmable Logic Device, PLD) and other devices are not limited in the present invention. The aforementioned chips can have separate or shared memory units, and the memory units are used to assist in data storage. In a feasible embodiment, the memory unit may be (but is not limited to) cache memory (Cache memory), dynamic random access memory (DRAM), persistent memory (Persistent Memory), etc. Devices or combinations thereof used for storing and retrieving data are not limited in the present invention.

以下針對本發明的其中一實施例進行說明,請一併參閱「圖1」、「圖2」以及「圖3」,為雜訊整型式數位自動增益控制系統的方塊示意圖、數位音訊增益自適應生成裝置的方塊示意圖以及雜訊整型模組的方塊示意圖,如圖所示。The following is a description of one embodiment of the present invention. Please refer to "Figure 1", "Figure 2" and "Figure 3" together, which are block diagrams of a noise integer type digital automatic gain control system and digital audio gain adaptation. Generate a block diagram of the device and a block diagram of the noise shaping module, as shown in the figure.

請先參酌「圖1」,本實施例揭示雜訊整型式數位自動增益控制系統100,主要包括音訊接收裝置10、類比-數位轉換器20、回授音訊裝置30、數位音訊增益自適應生成裝置40、增益調整裝置50、以及音訊輸出裝置60。Please refer to "Figure 1" first. This embodiment shows a noise integer digital automatic gain control system 100, which mainly includes an audio receiving device 10, an analog-to-digital converter 20, a feedback audio device 30, and a digital audio gain adaptive generation device. 40. Gain adjustment device 50, and audio output device 60.

所述的音訊接收裝置10主要用於接收環境中的聲音訊號(例如使用者的說話聲音)。於一實施例中,該音訊接收裝置10例如可以是但不限定於麥克風、拾音器、或是其他可以用以接收環境音波的裝置,於本發明中不予以限制。The audio receiving device 10 is mainly used to receive sound signals in the environment (such as the user's voice). In one embodiment, the audio receiving device 10 may be, for example but not limited to, a microphone, a pickup, or other devices that can be used to receive environmental sound waves, which are not limited in the present invention.

所述的類比-數位轉換器20(Digital to analog converter, DAC)用以將音訊接收裝置10的聲音訊號由類比訊號轉換成數位訊號,並輸出一數位音訊至該數位音訊增益自適應生成裝置40。The analog-to-digital converter 20 (Digital to analog converter, DAC) is used to convert the audio signal of the audio receiving device 10 from an analog signal into a digital signal, and output a digital audio to the digital audio gain adaptive generation device 40 .

所述的回授音訊裝置30用於將聲音偵測裝置70所接收到的音訊回授至數位音訊增益自適應生成裝置40,藉以形成一個閉迴路系統。於一實施例中,該回授音訊裝置30例如可以是一回授控制器(Feedback Controller)或是任意的回授電路,於本發明中不予以限制。於一實施例中,該回授音訊裝置30可以經由一設置於該音訊輸出裝置60附近的聲音偵測裝置70(例如麥克風)擷取該音訊輸出裝置60的輸出以獲得該回授音訊,並回授至該數位音訊增益自適應生成裝置40的虛擬升降波模組(後面將予以說明);於另一實施例中,該回授音訊裝置30係經由該增益調整裝置50的輸出獲得該播放音訊並將該播放音訊作為該回授音訊回授至該數位音訊增益自適應生成裝置40的虛擬升降波模組。The feedback audio device 30 is used to feed back the audio received by the sound detection device 70 to the digital audio gain adaptive generation device 40, thereby forming a closed loop system. In one embodiment, the feedback audio device 30 can be, for example, a feedback controller (Feedback Controller) or any feedback circuit, which is not limited in the present invention. In one embodiment, the feedback audio device 30 can capture the output of the audio output device 60 through a sound detection device 70 (such as a microphone) disposed near the audio output device 60 to obtain the feedback audio, and Feedback to the virtual up-and-down wave module (will be described later) of the digital audio gain adaptive generation device 40; in another embodiment, the feedback audio device 30 obtains the playback through the output of the gain adjustment device 50 The played audio is fed back to the virtual up and down wave module of the digital audio gain adaptive generation device 40 as the feedback audio.

所述的數位音訊增益自適應生成裝置40係連接至該類比-數位轉換器20以及該回授音訊裝置30以接收該數位音訊以及回授音訊。請參酌「圖2」,該數位音訊增益自適應生成裝置40主要包括虛擬升降波生成模組42、一設置於該虛擬升降波生成模組42輸出的雜訊整形模組44、以及一設置於該雜訊整形模組44輸出端的映射模組46。The digital audio gain adaptive generation device 40 is connected to the analog-to-digital converter 20 and the feedback audio device 30 to receive the digital audio and feedback audio. Please refer to "Figure 2". The digital audio gain adaptive generation device 40 mainly includes a virtual up and down wave generation module 42, a noise shaping module 44 provided at the output of the virtual up and down wave generation module 42, and a noise shaping module 44 provided at the output of the virtual up and down wave generation module 42. The noise shaping module 44 outputs a mapping module 46 .

所述虛擬升降波生成模組 42的輸入連接至該回授音訊裝置30的輸出,該虛擬升降波生成模組42由該回授音訊裝置30接收回授音訊並依據該回授音訊是否超出預設音量範圍輸出虛擬升降波訊號。具體而言,該虛擬升降波生成模組42可以經由儲存裝置(圖未示)儲存預設音量範圍,該預設音量範圍可以在出廠時設定,或是由使用者依據實際情境所設定,於本發明中不予以限制。該虛擬升降波生成模組42於接收到該回授音訊高於該預設音量範圍的上限值時輸出虛擬下降波訊號;該虛擬升降波生成模組42接收到該回授音訊低於該預設音量範圍的下限值時輸出虛擬上升波訊號。The input of the virtual up-and-down wave generation module 42 is connected to the output of the feedback audio device 30. The virtual up-and-down wave generation module 42 receives feedback information from the feedback audio device 30 and determines whether the feedback information exceeds a predetermined value. Set the volume range to output virtual up and down wave signals. Specifically, the virtual up-and-down wave generation module 42 can store a preset volume range through a storage device (not shown). The preset volume range can be set at the factory, or set by the user according to the actual situation. There is no limitation in the present invention. The virtual up-and-down wave generating module 42 outputs a virtual down-wave signal when receiving the feedback audio is higher than the upper limit of the preset volume range; the virtual up-and-down wave generating module 42 receives the feedback audio is lower than the upper limit of the preset volume range. A virtual rising wave signal is output at the lower limit of the preset volume range.

所述的雜訊整形模組44依據該虛擬升降波生成模組42的該虛擬升降波訊號(虛擬上升波或虛擬下降波)產生輸出代碼。請參酌「圖3」,於一實施例中,雜訊整形模組44包括第一加法器A1、第二加法器A2、第一延遲器D1、第二延遲器D2、第三延遲器D3、第一乘法器M1、第二乘法器M2、以及多位階量化器NQ。該第一加法器A1的輸入端連接至虛擬升降波生成模組 42的輸出、第一乘法器M1的輸出、第二乘法器M2的輸出、以及第三延遲器D3的輸出;該第二加法器A2的輸入端連接至該第一加法器A1的輸出、以及該多位階量化器NQ的輸出,其中該第二加法器A2的輸入端與該第一加法器A1的輸出之間進一步包括有一反向器(圖未示)以構成減法迴路;該第一延遲器D1的輸入端連接至該第二加法器A2的輸出,該第一乘法器M1的輸入連接至該第一延遲器D1的輸出以構成一階延遲回授迴路;該第二延遲器D2的輸入端連接至該第一延遲器D1的輸出,該第二乘法器M2的輸入連接至該第二延遲器D2的輸出以構成二階延遲迴路,其中該第二乘法器M2的輸出與該第一加法器A1進一步包括一反向器(圖未示)以構成減法迴路;該第三延遲器D3的輸入端連接至該第二延遲器D2的輸出以構成三階延遲迴路;該多位階量化器NQ的輸入端連接至該第一加法器A1的輸出,藉以將第一加法器A1的輸出(例如w[n])轉換為量化代碼。The noise shaping module 44 generates an output code according to the virtual up and down wave signal (virtual up wave or virtual down wave) of the virtual up and down wave generation module 42 . Please refer to "Figure 3". In one embodiment, the noise shaping module 44 includes a first adder A1, a second adder A2, a first delayer D1, a second delayer D2, a third delayer D3, The first multiplier M1, the second multiplier M2, and the multi-level quantizer NQ. The input terminal of the first adder A1 is connected to the output of the virtual up and down wave generation module 42, the output of the first multiplier M1, the output of the second multiplier M2, and the output of the third delayer D3; the second adder The input terminal of the second adder A2 is connected to the output of the first adder A1 and the output of the multi-level quantizer NQ, wherein there is further included between the input terminal of the second adder A2 and the output of the first adder A1 An inverter (not shown) is used to form a subtraction loop; the input terminal of the first delayer D1 is connected to the output of the second adder A2, and the input terminal of the first multiplier M1 is connected to the output terminal of the first delayer D1. output to form a first-order delay feedback loop; the input end of the second delayer D2 is connected to the output of the first delayer D1, and the input of the second multiplier M2 is connected to the output of the second delayer D2 to form A second-order delay loop, in which the output of the second multiplier M2 and the first adder A1 further include an inverter (not shown) to form a subtraction loop; the input end of the third delay D3 is connected to the second The output of the delayer D2 forms a third-order delay loop; the input end of the multi-level quantizer NQ is connected to the output of the first adder A1, thereby converting the output of the first adder A1 (for example, w[n]) into Quantify the code.

所述的第一加法器A1、第二加法器A2可以包括但不限定於加法器(Adder)、半加器(Half Adder)、全加器(Full adder)、波紋進位加法器、超前進位加法器實現、或其它用於執行加法運算的數位電路、邏輯閘或其組合,於本發明中不予以限制。The first adder A1 and the second adder A2 may include, but are not limited to, an adder, a half adder, a full adder, a ripple carry adder, and a carry-ahead. Adder implementation, or other digital circuits, logic gates, or combinations thereof for performing addition operations are not limited in the present invention.

所述的第一延遲器D1、第二延遲器D2、第三延遲器D3可以包括但不限定於積分器(Integrator)、計數器(Counter)等可以做為訊號延遲或積分用途之電路或其組合,於本發明中不予以限制。The first delayer D1, the second delayer D2, and the third delayer D3 may include but are not limited to integrators, counters, and other circuits that can be used for signal delay or integration, or a combination thereof. , is not limited in the present invention.

所述的第一乘法器M1、第二乘法器M2可以包括但不限定於運算放大器(op amp) 、或由複數個加法器所構成的電路、或其他類似的裝置,於本發明中不予以限制。The first multiplier M1 and the second multiplier M2 may include but are not limited to operational amplifiers (op amps), or circuits composed of a plurality of adders, or other similar devices, which are not included in the present invention. limit.

請復參閱「圖2」,所述的映射模組46的輸入連接至雜訊整形模組44的輸出,所述的映射模組46可以為具有關聯陣列查找功能(查找表)的處理器或算術邏輯單元(Arithmetic Logic Unit, ALU),於本發明中不予以限制。映射模組46依據該輸出代碼映射獲得更新後的增益倍率,並將該增益倍率傳送至該增益調整裝置50。Please refer to "Figure 2" again. The input of the mapping module 46 is connected to the output of the noise shaping module 44. The mapping module 46 can be a processor with an associative array lookup function (lookup table) or Arithmetic Logic Unit (ALU) is not limited in the present invention. The mapping module 46 obtains the updated gain factor according to the output code mapping, and transmits the gain factor to the gain adjustment device 50 .

增益調整裝置50係連接至該類比-數位轉換器20以及該數位音訊增益自適應生成裝置40,依據該增益倍率控制該數位音訊的增益,並將增益後的該數位音訊轉換成一播放音訊後傳送至音訊輸出裝置60;音訊輸出裝置60所輸出的聲音或接收到的播放音訊,經由該回授音訊裝置30回授至數位音訊增益自適應生成裝置40,藉此實現閉迴路控制。於另一實施例中,該增益調整裝置50可以將播放音訊傳送至記憶單元或通訊模組等,此部份端看實施的標的物不同,非屬本發明所欲限制的範圍。The gain adjustment device 50 is connected to the analog-to-digital converter 20 and the digital audio gain adaptive generation device 40, controls the gain of the digital audio according to the gain factor, and converts the gained digital audio into a playback audio for transmission. to the audio output device 60; the sound output by the audio output device 60 or the received playback audio is fed back to the digital audio gain adaptive generation device 40 through the feedback audio device 30, thereby realizing closed-loop control. In another embodiment, the gain adjustment device 50 can transmit playback audio to a memory unit or communication module. This part depends on the subject matter of the implementation and is not within the scope of the present invention.

以上針對本發明硬體架構的一具體實施例進行說明,有關於本發明的工作程式將於下面進行更進一步的說明。請參閱「圖4」,為本發明雜訊整型式數位自動增益控制系統的工作流程示意圖,如圖所示。The above describes a specific embodiment of the hardware architecture of the present invention, and the working procedure of the present invention will be further described below. Please refer to "Figure 4", which is a schematic diagram of the work flow of the noise integer digital automatic gain control system of the present invention, as shown in the figure.

首先,本發明雜訊整型式數位自動增益控制系統100啟動(步驟S201)。First, the noise integer digital automatic gain control system 100 of the present invention is started (step S201).

此時,音訊接收裝置10接收聲音,並將該聲音轉換為類比音訊(步驟S202);轉換後的類比音訊傳送至類比-數位轉換器20,該類比-數位轉換器20將類比音訊轉換為數位音訊(步驟S203)。At this time, the audio receiving device 10 receives the sound and converts the sound into analog audio (step S202); the converted analog audio is sent to the analog-to-digital converter 20, and the analog-to-digital converter 20 converts the analog audio into digital message (step S203).

數位音訊增益自適應生成裝置40中的虛擬升降波生成模組42由回授音訊裝置接收回授音訊並依據該回授音訊是否超出預設音量範圍輸出虛擬升降波訊號(步驟S204)。於本發明雜訊整型式數位自動增益控制系統100啟動時,由於尚無前一階的回授音訊,因此增益調整裝置50可以直接將音訊接收裝置10所接收的原音訊號直接輸出,而無須經過後面步驟S205-S208的調整。下述步驟S208中所獲得的回授音訊將用於修正下一階播放音訊。The virtual up and down wave generation module 42 in the digital audio gain adaptive generation device 40 receives the feedback audio from the feedback audio device and outputs a virtual up and down wave signal according to whether the feedback audio exceeds the preset volume range (step S204). When the noise shaping digital automatic gain control system 100 of the present invention is started, since there is no feedback audio from the previous stage, the gain adjustment device 50 can directly output the original audio signal received by the audio receiving device 10 without going through Adjustment of subsequent steps S205-S208. The feedback information obtained in the following step S208 will be used to modify the next level playback information.

於本實施例中,數位音訊增益自適應生成裝置40接收到該回授音訊高於該預設音量範圍的上限值時輸出虛擬下降波訊號;該虛擬升降波生成模組接收到該回授音訊低於該預設音量範圍的下限值時輸出虛擬上升波訊號。下降波訊號於一實施例中可以為由1(最大)至0(最小)之間的下降區間;上升波訊號於一實施例中可以為由0(最小)至1(最大) 之間的上升區間。於其他實施例中,上升段訊號與下降段訊號的峰值與波型(例如三角波、弦波等)可根據實際內容調整,於本發明中不予以限制。In this embodiment, the digital audio gain adaptive generation device 40 outputs a virtual down wave signal when it receives that the feedback audio is higher than the upper limit of the preset volume range; the virtual up and down wave generation module receives the feedback When the audio is lower than the lower limit of the preset volume range, a virtual rising wave signal is output. In one embodiment, the falling wave signal may be a falling range from 1 (maximum) to 0 (minimum); in one embodiment, the rising wave signal may be a rising range from 0 (minimum) to 1 (maximum). interval. In other embodiments, the peak value and waveform (such as triangle wave, sine wave, etc.) of the rising segment signal and the falling segment signal can be adjusted according to the actual content and are not limited in the present invention.

該雜訊整形模組44依據該虛擬升降波生成模組的該虛擬升降波訊號產生輸出代碼(步驟S205)。具體而言,雜訊整形模組44於接收到虛擬升降波訊號時,係依據下面的算式獲得輸出代碼。該雜訊整形模組的輸入及輸出係符合以下算式: ; 其中, x[n]為該虛擬升降波訊號於n階時的數值,y[n]為n階時的該輸出代碼,w[n]為x[n]及y[n]中間的轉移函數,bits_Quantizer()為多位階量化器的函式。 The noise shaping module 44 generates output codes according to the virtual up and down wave signals of the virtual up and down wave generation module (step S205). Specifically, when the noise shaping module 44 receives the virtual up and down wave signal, it obtains the output code according to the following formula. The input and output of the noise shaping module conform to the following formula: ; ; Among them, x[n] is the value of the virtual up and down wave signal at nth level, y[n] is the output code at nth level, w[n] is the transition between x[n] and y[n] Function, bits_Quantizer() is the function of multi-level quantizer.

依據上面的算式,其中該 的函式如下: ; 其中,M為多位階量化器預設的位階數值,floor()為一floor函數。 According to the above formula, the The function is as follows: ; Among them, M is the preset level value of the multi-level quantizer, and floor() is a floor function.

映射模組46依據該輸出代碼映射獲得更新後的增益倍率(步驟S206)。於一實施例中,該映射模組46的輸入及輸出係符合以下算式: ; 其中, 為第 階段輸入至該映射模組46的該輸出代碼, 為第 階段映射輸出的該增益倍率,Z為正整數, 為預設的音量增益步增值(單位為dB)。 The mapping module 46 obtains the updated gain factor according to the output code mapping (step S206). In one embodiment, the input and output of the mapping module 46 conform to the following formula: ; ; in, for the first the output code input to the mapping module 46, for the first The gain factor of the stage mapping output, Z is a positive integer, Add value (in dB) to the preset volume gain step.

接續,增益調整裝置50依據該增益倍率控制該數位音訊的增益,依據該增益將該數位音訊轉換成一播放音訊(步驟S207)。於一實施例中,增益調整裝置的輸入及輸出係符合以下算式: ; 其中, 為該映射模組第 階段輸入至該增益調整裝置50的該增益倍率, 為第 階段輸入至該音量調整模組38的數位音訊, 為該音量調整模組38於第 階段輸出的該播放音訊。所述的播放音訊將輸入至音訊輸出裝置60(或記憶單元、通訊模組等),本發明輸出的修正音訊訊號所應用的領域非屬本發明所欲限制的範圍,於此敘明。 Next, the gain adjustment device 50 controls the gain of the digital audio according to the gain factor, and converts the digital audio into a playback audio according to the gain (step S207). In one embodiment, the input and output of the gain adjustment device comply with the following formula: ; in, For this mapping module The gain magnification input to the gain adjustment device 50 in stages, for the first The digital audio input to the volume adjustment module 38 in stages, For the volume adjustment module 38 on page 38 The playback audio output by the stage. The playback audio will be input to the audio output device 60 (or memory unit, communication module, etc.). The application field of the modified audio signal output by the present invention is not within the scope of the present invention, and will be described here.

於上面的步驟中,播放音訊已完成一階調整,此時回授音訊裝置進一步將所獲得的回授音訊,回授至該虛擬升降波生成模組(步驟S208),並重複執行步驟S202~步驟S208,執行下一階調整、並獲得下一階回授音訊構成閉迴路,直至雜訊整型式數位自動增益控制系統關閉。In the above steps, the first-level adjustment of the playback audio has been completed. At this time, the feedback audio device further feeds back the obtained feedback audio to the virtual up and down wave generation module (step S208), and repeats steps S202~ Step S208: Perform next-level adjustment and obtain next-level feedback information to form a closed loop until the noise integer digital automatic gain control system is turned off.

綜上所述,比起習知技術,本發明可以經由雜訊整型將不連續的雜訊推到高頻,使得低頻部分的解析度提升,較先前技術能使調整過程較為平滑且迅速,避免音量調整速率所造成的不適。To sum up, compared with the conventional technology, the present invention can push discontinuous noise to high frequency through noise shaping, so that the resolution of the low frequency part is improved, and the adjustment process can be smoother and faster than the previous technology. Avoid discomfort caused by volume adjustment rate.

以上已將本發明做一詳細說明,惟,以上所述者,僅為本發明之一較佳實施例而已,當不能以此限定本發明實施之範圍,即凡依本發明申請專利範圍所作之均等變化與修飾,皆應仍屬本發明之專利涵蓋範圍內。The present invention has been described in detail above. However, what is described above is only one of the preferred embodiments of the present invention. It should not be used to limit the scope of the present invention. That is, anything based on the patent scope of the present invention is made. Equal changes and modifications should still fall within the scope of the patent of the present invention.

100:雜訊整型式數位自動增益控制系統 10:音訊接收裝置 20:類比-數位轉換器 30:回授音訊裝置 40:數位音訊增益自適應生成裝置 42:虛擬升降波生成模組 44:雜訊整形模組 A1:第一加法器 A2:第二加法器 D1:第一延遲器 D2:第二延遲器 D3:第三延遲器 M1:第一乘法器 M2:第二乘法器 NQ:多位階量化器 46:映射模組 50:增益調整裝置 60:音訊輸出裝置 70:聲音偵測裝置 步驟S201~步驟S208 100: Noise integer digital automatic gain control system 10: Audio receiving device 20: Analog-to-digital converter 30: Feedback audio device 40: Digital audio gain adaptive generation device 42:Virtual rising and falling wave generation module 44:Noise shaping module A1: First adder A2: Second adder D1: first delayer D2: Second delayer D3: The third delayer M1: first multiplier M2: Second multiplier NQ: multi-level quantizer 46: Mapping module 50: Gain adjustment device 60: Audio output device 70: Sound detection device Step S201~Step S208

圖1,為本發明雜訊整型式數位自動增益控制系統的方塊示意圖。Figure 1 is a block diagram of the noise integer digital automatic gain control system of the present invention.

圖2,為本發明中數位音訊增益自適應生成裝置的方塊示意圖。FIG. 2 is a block diagram of the digital audio gain adaptive generation device of the present invention.

圖3,為本發明中雜訊整型模組的方塊示意圖。FIG. 3 is a block diagram of the noise shaping module in the present invention.

圖4,為本發明雜訊整型式數位自動增益控制系統的工作流程示意圖。Figure 4 is a schematic diagram of the work flow of the noise integer digital automatic gain control system of the present invention.

100:雜訊整型式數位自動增益控制系統 100: Noise integer digital automatic gain control system

10:音訊接收裝置 10: Audio receiving device

20:類比-數位轉換器 20: Analog-to-digital converter

30:回授音訊裝置 30: Feedback audio device

40:數位音訊增益自適應生成裝置 40: Digital audio gain adaptive generation device

50:增益調整裝置 50: Gain adjustment device

60:音訊輸出裝置 60: Audio output device

70:聲音偵測裝置 70: Sound detection device

Claims (5)

一種雜訊整型式數位自動增益控制系統,包括:一音訊接收裝置,用以接收聲音並將其轉換為類比音訊;一類比-數位轉換器,連接至該音訊接收裝置,該類比-數位轉換器用以接收該類比音訊,並將其轉換為數位音訊;一數位音訊增益自適應生成裝置,連接至該類比-數位轉換器以接收該數位音訊,包括一虛擬升降波生成模組、一連接至該虛擬升降波生成模組的雜訊整形模組、以及一連接至該雜訊整形模組的映射模組;該虛擬升降波生成模組由一回授音訊裝置接收回授音訊並依據該回授音訊是否超出預設音量範圍輸出虛擬升降波訊號,其中該虛擬升降波生成模組接收到該回授音訊高於該預設音量範圍的上限值時輸出虛擬下降波訊號,該虛擬升降波生成模組接收到該回授音訊低於該預設音量範圍的下限值時輸出虛擬上升波訊號;該雜訊整形模組依據該虛擬升降波生成模組的該虛擬升降波訊號產生輸出代碼,其中,該雜訊整形模組的輸入及輸出係符合以下算式:y[n]=Nbits_Quantizer(w[n]);w[n]=x[n]+(y[n-3]-w[n-3])-3×(y[n-2]-w[n-2])+3×(y[n-1]-w[n-1]); 其中,x[n]為該虛擬升降波訊號於n階時的數值,y[n]為n階時的該輸出代碼,w[n]為x[n]及y[n]中間的轉移函數,Nbits_Quantizer()為多位階量化器的函式;該映射模組係依據該輸出代碼映射獲得更新後的增益倍率,其中,該映射模組的輸入及輸出係符合以下算式:if Y[N]
Figure 111116962-A0305-02-0014-5
2(Z-1) ,D[N]=[-(2(Z-1)-Y[N])]×α;if Y[N]>2(Z-1) ,D[N]=[2(Z-1)+(Y[N]-2 Z )]×α;其中,Y[N]為第N階段輸入至該映射模組的該輸出代碼,D[N]為第N階段映射輸出的該增益倍率,Z為正整數,α為預設的音量增益步增值;以及一增益調整裝置,係連接至該類比-數位轉換器以及該數位音訊增益自適應生成裝置,依據該增益倍率控制該數位音訊的增益,依據該增益將該數位音訊轉換成一播放音訊。
A noise integer digital automatic gain control system includes: an audio receiving device for receiving sound and converting it into analog audio; an analog-to-digital converter connected to the audio receiving device, and the analog-to-digital converter is used for To receive the analog audio and convert it into digital audio; a digital audio gain adaptive generation device is connected to the analog-to-digital converter to receive the digital audio, including a virtual rise and fall wave generation module, a device connected to the A noise shaping module of a virtual rise and fall wave generation module, and a mapping module connected to the noise shaping module; the virtual rise and fall wave generation module receives feedback information from a feedback audio device and based on the feedback Whether the audio exceeds the preset volume range and outputs a virtual up-and-down wave signal, wherein the virtual up-and-down wave generating module outputs a virtual down-wave signal when it receives the feedback audio is higher than the upper limit of the preset volume range, and the virtual up-and-down wave generation module When the module receives that the feedback audio is lower than the lower limit of the preset volume range, it outputs a virtual rising wave signal; the noise shaping module generates an output code based on the virtual rising and falling wave signal of the virtual rising and falling wave generation module, Among them, the input and output of the noise shaping module conform to the following formula: y[n]=Nbits_Quantizer(w[n]); w[n]=x[n]+(y[n-3]-w[ n-3])-3×(y[n-2]-w[n-2])+3×(y[n-1]-w[n-1]); where x[n] is The value of the virtual up and down wave signal at nth level, y[n] is the output code at nth level, w[n] is the transfer function between x[n] and y[n], Nbits_Quantizer() is multi-level quantization function of the converter; the mapping module obtains the updated gain factor based on the output code mapping, where the input and output of the mapping module conform to the following formula: if Y[N]
Figure 111116962-A0305-02-0014-5
2 ( Z -1) , D[N]=[-(2 ( Z -1) -Y[N])]×α; if Y[N]>2 ( Z -1) , D[N]=[ 2 ( Z -1) + (Y[N]-2 Z )]×α; where, Y[N] is the output code input to the mapping module in the Nth stage, and D[N] is the Nth stage mapping. For the output gain magnification, Z is a positive integer, α is a preset volume gain step increment value; and a gain adjustment device is connected to the analog-to-digital converter and the digital audio gain adaptive generation device, according to the gain magnification Control the gain of the digital audio, and convert the digital audio into playback audio according to the gain.
如請求項1所述的雜訊整型式數位自動增益控制系統,更進一步包括一音訊輸出裝置用以播放該播放音訊,該回授音訊裝置係經由一設置於該音訊輸出裝置附近的聲音偵測裝置擷取該音訊輸出裝置的輸出以獲得該回授音訊,並回授至該虛擬升降波生成模組。 The noise integer automatic gain control system as described in claim 1 further includes an audio output device for playing the playback audio, and the feedback audio device is through a sound detection device located near the audio output device. The device captures the output of the audio output device to obtain the feedback information and feeds it back to the virtual up and down wave generation module. 如請求項1所述的雜訊整型式數位自動增益控制系統,其 中,該回授音訊裝置係經由該增益調整裝置的輸出獲得該播放音訊並將該播放音訊作為該回授音訊回授至該虛擬升降波生成模組。 The noise integer type digital automatic gain control system as described in claim 1, wherein In the method, the feedback audio device obtains the playback audio through the output of the gain adjustment device and feeds the playback audio back to the virtual up and down wave generation module as the feedback audio. 如請求項1所述的雜訊整型式數位自動增益控制系統,其中,該Nbits_Quantizer()的函式如下:
Figure 111116962-A0305-02-0015-2
其中,M為多位階量化器預設的位階數值,floor()為一floor函數。
The noise integer digital automatic gain control system as described in request 1, wherein the function of Nbits_Quantizer() is as follows:
Figure 111116962-A0305-02-0015-2
Among them, M is the preset level value of the multi-level quantizer, and floor() is a floor function.
如請求項1所述的雜訊整型式數位自動增益控制系統,其中,該增益調整裝置的輸入及輸出係符合以下算式:
Figure 111116962-A0305-02-0015-3
其中,D[N]為第N階段輸入至該音量調整模組的該增益倍率,M[N]為第N階段輸入至該音量調整模組的該數位音訊,V[N]為第N階段輸出的調整後的該播放音訊。
The noise integer type digital automatic gain control system as described in claim 1, wherein the input and output of the gain adjustment device comply with the following formula:
Figure 111116962-A0305-02-0015-3
Among them, D[N] is the gain magnification input to the volume adjustment module at the Nth stage, M[N] is the digital audio input to the volume adjustment module at the Nth stage, and V[N] is the Nth stage. Outputs the adjusted playback audio.
TW111116962A 2022-05-05 2022-05-05 Noise shaping digital automatic gain control system TWI822030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111116962A TWI822030B (en) 2022-05-05 2022-05-05 Noise shaping digital automatic gain control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111116962A TWI822030B (en) 2022-05-05 2022-05-05 Noise shaping digital automatic gain control system

Publications (2)

Publication Number Publication Date
TWI822030B true TWI822030B (en) 2023-11-11
TW202345143A TW202345143A (en) 2023-11-16

Family

ID=89720385

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111116962A TWI822030B (en) 2022-05-05 2022-05-05 Noise shaping digital automatic gain control system

Country Status (1)

Country Link
TW (1) TWI822030B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1285993A (en) * 1997-10-31 2001-02-28 汤姆森许可公司 Co-channel interference detection network for HDTV receiver
US20030016770A1 (en) * 1997-07-31 2003-01-23 Francois Trans Channel equalization system and method
CN101689373A (en) * 2007-07-02 2010-03-31 摩托罗拉公司 Intelligent gradient noise reduction system
TW201838352A (en) * 2016-12-21 2018-10-16 美商英特爾公司 Wireless communication technology, apparatuses, and methods

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030016770A1 (en) * 1997-07-31 2003-01-23 Francois Trans Channel equalization system and method
CN1285993A (en) * 1997-10-31 2001-02-28 汤姆森许可公司 Co-channel interference detection network for HDTV receiver
CN101689373A (en) * 2007-07-02 2010-03-31 摩托罗拉公司 Intelligent gradient noise reduction system
TW201838352A (en) * 2016-12-21 2018-10-16 美商英特爾公司 Wireless communication technology, apparatuses, and methods

Also Published As

Publication number Publication date
TW202345143A (en) 2023-11-16

Similar Documents

Publication Publication Date Title
US8737642B2 (en) Audio reproducing apparatus
JP2007512733A (en) System and method for controlling audio output
JP3168620B2 (en) Digital / analog converter
KR20080068223A (en) Apparatus and method for enhancing bass
US8970298B2 (en) Digitally controlled power supplies for an audio amplifier
JP2000138549A (en) Signal compressor for audio system
CN104378774A (en) Voice quality processing method and device
JPWO2010041381A1 (en) Signal processing circuit
TW201933336A (en) Electronic device and echo cancellation method applied to electronic device
CN110741432A (en) Apparatus and method for dynamic range enhancement of audio signals
TWI822030B (en) Noise shaping digital automatic gain control system
JP2009159375A (en) Sound effect circuit and processing method
JPH10200351A (en) Digital audio processor
US20120033835A1 (en) System and method for modifying an audio signal
CN114205714B (en) Noise shaping type volume adjusting system and method
TWI501657B (en) Electronic audio device
JP2004015125A (en) Automatic gain control apparatus
US10431199B2 (en) Electronic device and control method of earphone device
TWI790718B (en) Conference terminal and echo cancellation method for conference
US11528002B2 (en) Systems, apparatus and methods for dynamic range enhancement of audio signals
CN114203195A (en) Noise remodeling type digital automatic gain control system and method
TWI809728B (en) Noise reduction volume control system and method
CN113890492A (en) Power supply voltage control method and controller of audio power amplifier and audio equipment
CN1168340C (en) Portable wireless telephone having improved ringing device
CN114125658A (en) Dynamic range control circuit, audio processing chip and audio processing method thereof