KR100756007B1 - Method and apparatus for generally-equal extent sound level - Google Patents

Method and apparatus for generally-equal extent sound level Download PDF

Info

Publication number
KR100756007B1
KR100756007B1 KR1020060068434A KR20060068434A KR100756007B1 KR 100756007 B1 KR100756007 B1 KR 100756007B1 KR 1020060068434 A KR1020060068434 A KR 1020060068434A KR 20060068434 A KR20060068434 A KR 20060068434A KR 100756007 B1 KR100756007 B1 KR 100756007B1
Authority
KR
South Korea
Prior art keywords
level
attack
gain
initial
sound signal
Prior art date
Application number
KR1020060068434A
Other languages
Korean (ko)
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 KR1020060068434A priority Critical patent/KR100756007B1/en
Application granted granted Critical
Publication of KR100756007B1 publication Critical patent/KR100756007B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G7/00Volume compression or expansion in amplifiers
    • H03G7/007Volume compression or expansion in amplifiers of digital or coded signals
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Control Of Amplification And Gain Control (AREA)

Abstract

A method for a sound level of an equal range on the whole and an apparatus for the same are provided to output a sound as a same range level by adjusting attack gain based on a maximum level, a high-rank critical level, and a low-rank critical level. A method for a sound level of an equal range on the whole includes the steps of: calculating an attack level by multiplying an absolute value of an input sound signal by attack gain(401); comparing a predetermined maximum level with the attack level(402); and controlling the attack gain according to a compared result(403). The method for a sound level of an equal range on the whole further includes the steps of: increasing the attack gain when the data size of the input sound signal is bigger than a predetermined value and decreasing the attack gain when the data size of the input sound signal is smaller than the predetermined value.

Description

전체적으로 동일 범위의 사운드 레벨을 위한 방법 및 장치{METHOD AND APPARATUS FOR GENERALLY-EQUAL EXTENT SOUND LEVEL}METHOD AND APPARATUS FOR GENERALLY-EQUAL EXTENT SOUND LEVEL}

도 1은 본 발명의 일실시예에 따른 사운드 레벨 조절 방법을 설명하기 위한 흐름도이다.1 is a flowchart illustrating a sound level adjusting method according to an embodiment of the present invention.

도 2는 본 발명의 일실시예에 따른 입력 사운드 신호의 레벨을 설명하기 위한 도면이다.2 is a view for explaining the level of the input sound signal according to an embodiment of the present invention.

도 3은 본 발명의 일실시예에 따른 입력 사운드 신호의 절대값 레벨에 어택 게인이 곱해진 어택 레벨을 설명하기 위한 도면이다.3 is a diagram for describing an attack level obtained by multiplying an attack gain by an absolute value level of an input sound signal according to an exemplary embodiment of the present invention.

도 4는 초기 어택 레벨이 최대 레벨 이상인 경우 어택 게인을 조절하기 위한 방법을 도시한 흐름도이다.4 is a flowchart illustrating a method for adjusting attack gain when the initial attack level is greater than or equal to the maximum level.

도 5는 초기 어택 레벨이 최대 레벨과 상위 임계 레벨 사이인 경우 어택 게인을 조절하기 위한 방법을 도시한 흐름도이다.5 is a flowchart illustrating a method for adjusting attack gain when the initial attack level is between the maximum level and the upper threshold level.

도 6은 초기 어택 레벨이 하위 임계 레벨 이하인 경우 어택 게인을 조절하기 위한 방법을 도시한 흐름도이다.6 is a flowchart illustrating a method for adjusting attack gain when the initial attack level is less than or equal to the lower threshold level.

도 7은 본 발명의 일실시예에 따른 사운드 레벨 조절 장치를 설명하기 위한 블록도이다.7 is a block diagram illustrating an apparatus for adjusting sound level according to an embodiment of the present invention.

도 8은 도 7의 신호 처리부를 구체적으로 설명하기 위한 도면이다.FIG. 8 is a diagram for describing the signal processor of FIG. 7 in detail.

도 9는 도 7의 어택 게인 조절부를 구체적으로 설명하기 위한 도면이다.9 is a view for explaining in detail the attack gain control unit of FIG.

도 10은 도 7의 출력부를 구체적으로 설명하기 위한 도면이다.FIG. 10 is a diagram for describing the output unit of FIG. 7 in detail.

<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for main parts of the drawings>

700: 사운드 레벨 조절 장치700: sound level adjusting device

710: 입력부710: input unit

720: 신호 처리부720: signal processing unit

730: 출력부730: output unit

740: 어택 게인 조절부740: attack gain control unit

본 발명은 사운드 신호를 처리하는 방법 및 장치에 관한 것으로서, 특히 소리의 크기 레벨이 일정하지 않은 환경에서 불규칙하게 수신되는 입력 사운드 신호를 소리의 변형은 없이 일정 범위 이내의 레벨로 처리하는 사운드 레벨 조절 방법 및 장치에 관한 것이다.The present invention relates to a method and apparatus for processing a sound signal, and in particular, a sound level control for processing an input sound signal that is irregularly received in an environment in which a loudness level is not constant to a level within a predetermined range without sound deformation. A method and apparatus are disclosed.

소리를 녹음하는데 있어서, 음원과 마이크의 거리에 따라 녹음되는 소리의 크기가 달라진다. 예를 들어, 전화기 핸드셋의 경우 음원과 마이크의 거리를 일정하게 유지하기 힘들뿐만 아니라 변화하는 거리를 미리 예측하기가 곤란한 이유로, 핸드셋의 마이크 신호를 녹음하여 들으면 소리의 크기가 일정치 않게 녹음될 수 있다. 전체적으로 불균형적인 크기로 녹음된 소리를 다시 재생하는 경우에, 너무 크 거나 작은 소리는 듣기 불편할 수 있다. In recording sound, the volume of the recorded sound varies depending on the distance between the sound source and the microphone. For example, in the case of a telephone handset, the distance between the sound source and the microphone is not only constant, but also because it is difficult to predict the changing distance in advance. have. Too large or small sound may be uncomfortable if you play back the sound recorded at an unbalanced size overall.

일반적으로 소리가 일정 레벨로 출력되도록 하기 위하여 높은 신호는 일방적으로 줄이고 낮은 신호는 일방적으로 키우는 방법이 사용되고 있다. 그러나, 이와 같은 단순한 방법은 소리의 변형을 가져와 원음과 다르게 출력되므로, 사용자가 원음에 가까운 소리를 들을 수 없다는 문제점이 있다. 따라서, 소리의 변형을 최소화하면서도 소리를 적절하게 동일한 레벨로 조절할 수 있는 기술적 사상이 필요한 실정이다.In general, in order to output sound at a constant level, a high signal is unilaterally reduced and a low signal is unilaterally raised. However, such a simple method has a problem in that the user cannot hear a sound close to the original sound because the sound is deformed and output differently from the original sound. Therefore, there is a need for a technical idea that can adjust the sound to the same level appropriately while minimizing the deformation of the sound.

본 발명은 상술한 바와 같은 종래기술의 문제점을 해결하기 위해 안출된 것으로서, 본 발명의 목적은, 소리를 일정 어택 게인만큼 줄이거나 키울 때, 입력 사운드 신호에 어택 게인을 곱한 어택 레벨의 영역을 고려하여 어택 게인을 업데이트함으로써, 소리의 변형 없이 일정 범위의 레벨로 소리를 출력시킬 수 있는 사운드 레벨 조절 방법 및 장치를 제공하는 데 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the problems of the prior art as described above, and an object of the present invention is to consider an area of an attack level multiplied by an attack gain when the sound is reduced or increased by a certain attack gain. By updating the attack gain, to provide a sound level control method and apparatus that can output the sound in a range of levels without changing the sound.

상기의 목적을 달성하고, 상술한 종래기술의 문제점을 해결하기 위하여, 본 발명에 따른 사운드 레벨 조절 방법은 입력 사운드 신호의 절대값 레벨에 어택 게인을 곱하여 어택 레벨을 계산하는 단계, 상기 어택 레벨과 소정 최대 레벨을 비교하는 단계, 및 상기 비교 결과에 따라 상기 어택 게인을 조절하는 단계를 포함하는 것을 특징으로 한다.In order to achieve the above object and to solve the above-mentioned problems of the prior art, the sound level adjusting method according to the present invention is to calculate the attack level by multiplying the attack gain by the absolute value level of the input sound signal, the attack level and Comparing a predetermined maximum level, and adjusting the attack gain according to the comparison result.

본 발명에 일실시예에 따른 사운드 레벨 조절 방법은 상기 입력 사운드 신호 의 데이터 크기가 소정치 이상인 경우에 상기 어택 게인을 증가시키는 단계 및 상기 데이터의 크기가 상기 소정치 보다 작은 경우에 상기 어택 게인을 감소시키는 단계를 더 포함하는 것을 특징으로 한다.The sound level adjusting method according to an embodiment of the present invention includes the step of increasing the attack gain when the data size of the input sound signal is greater than or equal to a predetermined value and the attack gain when the size of the data is smaller than the predetermined value. It further comprises the step of reducing.

본 발명에 일실시예에 따른 사운드 레벨 조절 방법은 상기 입력 사운드 신호의 노이즈를 감지하여 제거하는 단계를 더 포함하는 것을 특징으로 한다.The sound level adjusting method according to an embodiment of the present invention may further include detecting and removing noise of the input sound signal.

본 발명에 일실시예에 따른 사운드 레벨 조절 방법은 입력 사운드 신호의 절대값 레벨에 어택 게인을 곱하여 구한 초기 어택 레벨과 소정 최대 레벨을 비교하는 단계, 상기 초기 어택 레벨이 상기 소정 최대 레벨 이상인 경우에 상기 초기 어택 레벨이 상기 소정 최대 레벨 이하가 될 때까지 상기 어택 게인을 일정 레이트(rate)씩 감소시켜서 변경된 어택 레벨을 생성하는 단계, 및 상기 초기 어택 레벨이 상기 소정 최대 레벨 보다 작은 경우에 상기 어택 게인을 조절하여 조절된 어택 게인을 생성하는 단계를 포함하는 것을 특징으로 한다.According to an embodiment of the present invention, a sound level adjusting method includes comparing an initial attack level and a predetermined maximum level obtained by multiplying an absolute gain level of an input sound signal by an attack gain, when the initial attack level is greater than or equal to the predetermined maximum level. Reducing the attack gain by a predetermined rate until the initial attack level is less than or equal to the predetermined maximum level to generate a modified attack level, and when the initial attack level is less than the predetermined maximum level. And adjusting the gain to produce the adjusted attack gain.

본 발명에 일실시예에 따른 상기 절대값 레벨은 상기 입력 사운드 신호의 일정 구간에서의 최대 절대값 레벨인 것을 특징으로 한다.The absolute value level according to an embodiment of the present invention is characterized in that the maximum absolute value level in a predetermined section of the input sound signal.

본 발명에 일실시예에 따른 사운드 레벨 조절 방법은 상기 초기 어택 레벨을 기준 게인으로 나눈 출력 신호를 생성하는 단계를 더 포함하는 것을 특징으로 한다.The sound level adjusting method according to an embodiment of the present invention may further include generating an output signal obtained by dividing the initial attack level by a reference gain.

본 발명에 일실시예에 따른 사운드 레벨 조절 방법은 상기 조절된 어택 게인을 상기 입력 사운드 신호에 곱한 레벨을 기준 게인으로 나눈 출력 신호를 생성하는 단계를 더 포함하는 것을 특징으로 한다.The sound level adjusting method according to an embodiment of the present invention may further include generating an output signal obtained by dividing the adjusted attack gain by a level obtained by multiplying the input sound signal by a reference gain.

본 발명에 일실시예에 따른 사운드 레벨 조절 방법은 상기 변경된 어택 레벨을 기준 게인으로 나눈 출력 신호를 생성하는 단계를 더 포함하는 것을 특징으로 한다.The sound level adjusting method according to an embodiment of the present invention may further include generating an output signal obtained by dividing the changed attack level by a reference gain.

본 발명에 일실시예에 따른 상기 기준 게인은 2의 8승(256)인 것을 특징으로 한다.The reference gain according to an embodiment of the present invention is characterized in that the eighth of 256 (256).

본 발명에 일실시예에 따른 사운드 레벨 조절 방법은 상기 입력 사운드 신호가 일정 레벨 이하인 경우에만 상기 어택 게인이 이용되는 것을 특징으로 한다.The sound level adjusting method according to an embodiment of the present invention is characterized in that the attack gain is used only when the input sound signal is below a predetermined level.

본 발명에 일실시예에 따르면, 상기 입력 사운드 신호가 제1 레벨 이하인 경우에 상기 어택 게인은 제1 값을 가지고, 상기 입력 사운드 신호가 제2 레벨 이상인 경우에 상기 어택 게인은 제2 값을 가지는 것을 특징으로 한다.According to an embodiment of the present invention, when the input sound signal is less than or equal to the first level, the attack gain has a first value, and when the input sound signal is greater than or equal to the second level, the attack gain has a second value. It is characterized by.

본 발명에 일실시예에 따른 상기 조절된 어택 게인을 생성하는 단계에서 상기 초기 어택 레벨이 상기 소정 최대 레벨 보다 작고 상위 임계 레벨보다 큰 경우에, 상기 어택 게인이 상기 기준 게인 보다 크면 상기 어택 게인을 상기 기준 게인으로 설정하고, 그렇지 않으면 상기 어택 게인을 일정 레이트로 감소시키는 것을 특징으로 한다.In the step of generating the adjusted attack gain according to an embodiment of the present invention, when the initial attack level is smaller than the predetermined maximum level and larger than an upper threshold level, the attack gain is larger than the reference gain. The reference gain is set, otherwise the attack gain is reduced at a constant rate.

본 발명에 일실시예에 따른 상기 조절된 어택 게인을 생성하는 단계에서 상기 초기 어택 레벨이 상기 소정 최대 레벨 보다 작고 하위 임계 레벨 보다 작은 경우에, 상기 어택 게인이 상기 기준 게인 보다 작으면 상기 어택 게인을 상기 기준 게인으로 설정하고, 그렇지 않으면 상기 어택 게인을 일정 레이트로 증가시키는 것을 특징으로 한다.If the initial attack level is less than the predetermined maximum level and less than a lower threshold level in the step of generating the adjusted attack gain according to an embodiment of the present invention, the attack gain is smaller than the reference gain. Is set to the reference gain, otherwise the attack gain is increased at a constant rate.

본 발명에 일실시예에 따른 사운드 레벨 조절 방법은 상기 입력 사운드 신호의 데이터 크기가 소정치 이상인 경우에 상기 어택 게인을 증가시키는 단계 및 상기 입력 사운드 신호의 데이터 크기가 소정치 보다 작은 경우에 상기 어택 게인을 감소시키는 단계를 포함하는 것을 특징으로 한다.The sound level adjusting method according to an embodiment of the present invention increases the attack gain when the data size of the input sound signal is greater than or equal to a predetermined value and the attack when the data size of the input sound signal is smaller than a predetermined value. Reducing the gain.

본 발명에 일실시예에 따른 사운드 레벨 조절 장치는 입력 사운드 신호의 절대값 레벨에 어택 게인을 곱하여 초기 어택 레벨을 생성하는 입력부, 상기 초기 어택 레벨이 최대 레벨 이상인 경우에 상기 초기 어택 레벨이 상기 최대 레벨 이하가 될 때까지 상기 어택 게인을 일정 레이트(rate)씩 감소시켜서 변경된 어택 레벨을 생성하는 신호 처리부, 및 상기 초기 어택 레벨이 상기 최대 레벨 이하인 경우에 상기 어택 게인을 조절하여 상기 입력부로 출력하는 어택 게인 조절부를 포함하는 것을 특징으로 한다.An apparatus for adjusting a sound level according to an embodiment of the present invention includes an input unit for generating an initial attack level by multiplying an absolute gain level of an input sound signal by an attack gain, and when the initial attack level is greater than or equal to the maximum level, the initial attack level is the maximum level. A signal processor for generating a modified attack level by decreasing the attack gain by a predetermined rate until the level is lower than the level, and adjusting the attack gain and outputting the attack gain to the input unit when the initial attack level is below the maximum level. Characterized in that it comprises an attack gain control unit.

본 발명에 일실시예에 따른 사운드 레벨 조절 장치는 상기 초기 어택 레벨 또는 상기 변경된 어택 레벨 중에서 어느 하나를 기준 게인으로 나눈 출력 신호를 생성하는 출력부를 더 포함하는 것을 특징으로 한다.The apparatus for adjusting sound levels according to an embodiment of the present invention may further include an output unit configured to generate an output signal obtained by dividing any one of the initial attack level and the changed attack level by a reference gain.

본 발명에 일실시예에 따른 상기 어택 게인 조절부는 상기 초기 어택 레벨이 상기 최대 레벨 보다 작고 상위 임계 레벨보다 큰 경우에, 상기 어택 게인이 상기 기준 게인 보다 크면 상기 어택 게인을 상기 기준 게인으로 설정하고, 그렇지 않으면 상기 어택 게인을 일정 레이트로 감소시키는 것을 특징으로 한다.The attack gain control unit according to an embodiment of the present invention sets the attack gain as the reference gain when the attack gain is greater than the reference gain when the initial attack level is smaller than the maximum level and larger than an upper threshold level. Otherwise, the attack gain is reduced at a constant rate.

본 발명에 일실시예에 따른 상기 어택 게인 조절부는 상기 초기 어택 레벨이 상기 최대 레벨 보다 작고 하위 임계 레벨 보다 작은 경우에, 상기 어택 게인이 상 기 기준 게인 보다 작으면 상기 어택 게인을 상기 기준 게인으로 설정하고, 그렇지 않으면 상기 어택 게인을 일정 레이트로 증가시키는 것을 특징으로 한다.The attack gain control unit according to an embodiment of the present invention, when the initial attack level is less than the maximum level and less than the lower threshold level, if the attack gain is less than the reference gain, the attack gain as the reference gain Otherwise, the attack gain is increased at a constant rate.

이하 첨부 도면들 및 첨부 도면들에 기재된 내용들을 참조하여 본 발명의 바람직한 실시예를 상세하게 설명하지만, 본 발명이 실시예들에 의해 제한되거나 한정되는 것은 아니다. Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings and the contents described in the accompanying drawings, but the present invention is not limited or limited to the embodiments.

도 1은 본 발명의 일실시예에 따른 사운드 레벨 조절 방법을 설명하기 위한 흐름도이다.1 is a flowchart illustrating a sound level adjusting method according to an embodiment of the present invention.

도 1을 참조하면, 먼저 사운드 조절 장치는 입력 사운드 신호의 레벨을 조절하기 위하여 초기화된다(단계 101). 상기 입력 사운드 신호는 녹음되기 위하여 다운로드 또는 스트리밍 방식 등으로 실시간 입력되는 사운드 신호일 수 있고, 이에 한정되는 것은 아니며, 소정 녹음 매체 등에 저장되어 재생되는 사운드 신호일 수도 있다. Referring to Fig. 1, first, the sound adjusting device is initialized to adjust the level of an input sound signal (step 101). The input sound signal may be a sound signal that is input in real time in a download or streaming manner in order to be recorded, and the like.

보다 구체적으로 상기 단계 101에서 상기 사운드 레벨 조절 장치는 입력되는 사운드 신호(이하 입력 사운드 신호라 함)를 조절하기 위해 곱해지는 어택 게인(AG)의 초기값이 설정된다. 이 때, 관리자의 경험에 의해 결정되는 값 또는 과거 유사한 특성을 갖는 신호의 레벨 조절에 이용된 값이 상기 어택 게인(AG)으로 설정될 수 있다. 상기 어택 게인(AG)은 상기 입력 사운드 신호 중에서 소정 레벨 이하인 영역의 레벨을 키우거나 소정 레벨 이상인 영역의 레벨을 줄이기 위해 선택적으로 다른 값이 사용될 수도 있다.More specifically, in step 101, the sound level control apparatus sets an initial value of the attack gain AG that is multiplied to adjust the input sound signal (hereinafter referred to as an input sound signal). At this time, a value determined by the administrator's experience or a value used to adjust a level of a signal having similar characteristics in the past may be set to the attack gain AG. The attack gain AG may be selectively used to increase the level of the area below the predetermined level or reduce the level of the area above the predetermined level among the input sound signals.

도 2는 본 발명의 일실시예에 따른 입력 사운드 신호의 레벨을 설명하기 위 한 도면이다.2 is a view for explaining the level of the input sound signal according to an embodiment of the present invention.

상술한 바와 같이, 상기 어택 게인(AG)으로는 상기 입력 사운드 신호 중에서 소정 레벨 이하인 영역(201)의 레벨을 키우기 위한 어택 게인(AG1) 또는 소정 레벨 이상인 영역(202)의 레벨을 줄이기 위한 어택 게인(AG2)이 선택적으로 사용될 수 있다. 즉, 상기 입력 사운드 신호의 레벨이 일정 크기 이하인 영역(201)에는 상기 어택 게인(AG1)이 상기 입력 사운드 신호에 곱해져 상기 입력 사운드 신호의 레벨을 상기 일정 크기의 이상으로 증가시키고, 상기 입력 사운드 신호의 레벨이 일정 크기 이상인 영역(202)에는 상기 어택 게인(AG2)이 상기 입력 사운드 신호에 곱해져 상기 입력 사운드 신호의 레벨을 상기 일정 크기의 이하로 감소시킬 수 있다. 보다 일반적으로, 상기 입력 사운드 신호가 제1 레벨 이하인 경우에 상기 어택 게인(AG)은 제1 값을 가지고, 상기 입력 사운드 신호가 제2 레벨 이상인 경우에 상기 어택 게인(AG)은 제2 값을 가질 수 있다.As described above, the attack gain AG is an attack gain AG1 for increasing the level of the region 201 that is less than or equal to a predetermined level among the input sound signals, or an attack gain for reducing the level of the region 202 that is greater than or equal to a predetermined level. (AG2) may optionally be used. That is, in the area 201 where the level of the input sound signal is equal to or less than a predetermined magnitude, the attack gain AG1 is multiplied by the input sound signal to increase the level of the input sound signal to be greater than or equal to the predetermined magnitude. The attack gain AG2 may be multiplied by the input sound signal to reduce the level of the input sound signal to less than or equal to the predetermined magnitude in the region 202 having a signal level greater than or equal to a predetermined magnitude. More generally, when the input sound signal is less than or equal to the first level, the attack gain AG has a first value, and when the input sound signal is greater than or equal to the second level, the attack gain AG becomes a second value. Can have

또한, 상기 어택 게인(AG1 또는 AG2)이 적용되는 영역 이외에 적당한 레벨을 갖는 영역에 대해서는 입력 사운드 신호를 그대로 유지할 수 있다. 따라서, 본 발명에 따른 사운드 레벨 조절 장치는 입력 사운드 신호의 왜곡을 최소화하는 범위에서 적절한 레벨의 조절을 수행할 수 있다.In addition, the input sound signal may be maintained in an area having an appropriate level in addition to the area to which the attack gain AG1 or AG2 is applied. Therefore, the sound level adjusting device according to the present invention can perform appropriate level adjustment in a range that minimizes distortion of the input sound signal.

다음으로, 단계 102에서, 상기 사운드 조절 장치는 새로운 입력 사운드 신호를 리딩한다. 단계 103에서는 상기 리딩되는 입력 사운드 신호를 기반으로 현재의 입력 사운드 신호의 특성을 반영하여 상기 단계 101에서 대략적으로 설정된 상기 어택 게인(AG)이 변경될 수 있다.Next, in step 102, the sound control device reads a new input sound signal. In step 103, the attack gain AG set in step 101 may be changed to reflect the characteristics of the current input sound signal based on the leading input sound signal.

예를 들어, 상기 단계 102에서, 상기 입력 사운드 신호의 데이터 크기를 고려하여 상기 어택 게인(AG)이 변경될 수 있다. 보다 구체적으로 상기 입력 사운드 신호의 비트 레이트(bit rate)가 높아질 경우에는 신호들의 레벨의 차이가 적어지므로 입력 사운드 신호에 어택 게인(AG)을 곱하여도 많은 왜곡이 발생되지 않는다. 또한, 상기 비트 레이트가 낮아지는 경우에는 신호들의 레벨 차이가 커지므로 입력 사운드 신호에 어택 게인(AG)이 곱해지는 경우에 왜곡이 발생될 수 있다. 따라서, 데이터 크기가 증가되는 경우에는 상기 어택 게인(AG)의 크기를 증가하거나, 반대로, 데이터의 크기가 작아지는 경우에는 상기 어택 게인(AG)의 크기를 감소시킬 수 있다.For example, in step 102, the attack gain AG may be changed in consideration of the data size of the input sound signal. More specifically, when the bit rate of the input sound signal increases, the difference in the levels of the signals decreases, so that even if the input sound signal is multiplied by the attack gain AG, much distortion is not generated. In addition, when the bit rate is lowered, since the level difference between the signals becomes larger, distortion may occur when the attack gain AG is multiplied by the input sound signal. Therefore, when the size of data is increased, the size of the attack gain AG may be increased, or conversely, when the size of data is reduced, the size of the attack gain AG may be decreased.

다음으로, 단계 104에서, 상기 사운드 조절 장치는 상기 입력 사운드 신호의 절대값 레벨을 체크한다. 예를 들어, 상기 사운드 조절 장치는 일정 구간(또는 프레임)에서 상기 입력 사운드 신호의 레벨의 최대 절대값을 상기 입력 사운드 신호의 절대값 레벨로서 산출할 수 있다. Next, in step 104, the sound control device checks the absolute value level of the input sound signal. For example, the sound control apparatus may calculate a maximum absolute value of the level of the input sound signal as an absolute value level of the input sound signal in a predetermined period (or frame).

단계 105에서는 상기 입력 사운드 신호에 노이즈가 감지되는지 여부를 판단하고, 판단 결과, 특정 영역에서 노이즈가 감지되는 경우에 상기 특정 영역의 신호에 섞인 노이즈가 제거될 수 있도록 처리한다(단계 106). 상기 입력 사운드 신호에 섞인 노이즈는 소정 알고리즘에 따른 필터를 이용하여 검출될 수 있다. In step 105, it is determined whether noise is detected in the input sound signal, and when the noise is detected in a specific region, the processing is performed such that noise mixed in the signal of the specific region can be removed (step 106). Noise mixed in the input sound signal may be detected using a filter according to a predetermined algorithm.

다음으로, 단계 107에서는 상기 입력 사운드 신호의 상기 절대값 레벨을 참조하여 현재 입력 신호에 적합하도록 상기 어택 게인(AG)을 업데이트한다. 보다 구체적으로 상기 단계 107에서, 상기 사운드 레벨 조절 장치는 상기 입력 사운드 신호의 절대값 레벨에 상기 어택 게인(AG)을 곱하여 초기 어택 레벨을 산출한다. 또한, 상기 단계 107에서는 상기 단계 101에서 설정된 최대 레벨(MAX), 상위 임계 레벨(HTH), 및 하위 임계 레벨(LTH)과 상기 산출된 초기 어택 레벨을 비교하고, 상기 비교 결과에 따라 선택적으로 상기 어택 게인(AG)을 조절할 수 있다. 상기 단계 107은 도 3 내지 도 6을 통해 상세히 설명한다.Next, in step 107, the attack gain AG is updated to match the current input signal with reference to the absolute value level of the input sound signal. More specifically, in step 107, the sound level adjusting device calculates an initial attack level by multiplying the absolute gain level of the input sound signal by the attack gain AG. In operation 107, the maximum level MAX, the upper threshold level HTH, and the lower threshold level LTH set in the operation 101 may be compared with the calculated initial attack level. Attack gain (AG) can be adjusted. Step 107 will be described in detail with reference to FIGS. 3 to 6.

도 3은 본 발명의 일실시예에 따른 입력 사운드 신호의 절대값 레벨에 어택 게인(AG)이 곱해진 어택 레벨을 설명하기 위한 도면이다.FIG. 3 is a diagram illustrating an attack level obtained by multiplying an attack gain AG by an absolute value level of an input sound signal according to an exemplary embodiment of the present invention.

상기 어택 레벨은 입력 사운드 신호의 절대값 레벨과 상기 어택 게인(AG)을 곱한 값으로서, 도 3에서 보는 바와 같이, 최대 레벨(MAX), 상위 임계 레벨(HTH), 및 하위 임계 레벨(LTH)의 경계와의 비교를 통해 상기 어택 레벨 또는 상기 어택 게인(AG)의 조절 여부가 결정될 수 있다. 이 때, 상기 최대 레벨(MAX), 상위 임계 레벨(HTH), 및 하위 임계 레벨(LTH)은 상기 조절된 입력 사운드 신호의 왜곡이 최소화되는 범위에서 상기 어택 게인(AG)을 효율적으로 조절할 수 있는 기준 값으로서, 소정 경험치에 의해 결정되는 값 또는 과거 유사한 특성을 갖는 신호의 레벨 조절에 이용된 값 등으로 설정될 수 있다. 상기 최대 레벨(MAX), 상위 임계 레벨(HTH), 및 하위 임계 레벨(LTH)은 도 1의 초기화 단계 101에서, 상기 어택 게인(AG)와 함께 설정될 수 있다.The attack level is a value obtained by multiplying the absolute value level of the input sound signal by the attack gain AG, and as shown in FIG. 3, the maximum level MAX, the upper threshold level HTH, and the lower threshold level LTH. It may be determined whether the attack level or the attack gain AG is adjusted by comparing the boundary with the boundary. In this case, the maximum level MAX, the upper threshold level HTH, and the lower threshold level LTH may efficiently adjust the attack gain AG within a range in which distortion of the adjusted input sound signal is minimized. The reference value may be set to a value determined by a predetermined experience value or a value used to adjust a level of a signal having similar characteristics in the past. The maximum level MAX, the upper threshold level HTH, and the lower threshold level LTH may be set together with the attack gain AG in the initialization step 101 of FIG. 1.

보다 구체적으로, 도면 부호(301)를 참조하면, 이는 상기 어택 레벨이 상기 최대 레벨(MAX)보다 큰 값을 가지는 경우를 나타낸다. 이 경우에, 상기 어택 레벨은 더 이상 커지면 안되는 한계점인 상기 최대 레벨(MAX)을 초과하였으므로 상기 어택 레벨이 상기 최대 레벨(MAX) 이하로 작아질 수 있도록 조절되어야 한다. 즉, 상기 어택 레벨로 산출되는 상기 어택 게인(AG) 또는 상기 입력 사운드 신호의 절대값 레벨 중에서 어느 하나를 줄여야 하는데, 상기 입력 사운드 신호의 절대값 레벨은 이미 정해진 크기이므로, 상기 어택 게인(AG)을 줄임으로써, 전체적으로 상기 어택 레벨을 상기 최대 레벨(MAX) 이하로 줄일 수 있다. 결국, 정해진 크기 이상으로 입력 사운드 신호가 출력되는 현상이 예방될 수 있다.More specifically, referring to reference numeral 301, this represents a case where the attack level has a value larger than the maximum level MAX. In this case, the attack level has exceeded the maximum level MAX, which is a threshold that should no longer be increased, so the attack level should be adjusted to be smaller than the maximum level MAX. That is, one of the attack gain AG calculated as the attack level or the absolute value level of the input sound signal should be reduced. Since the absolute value level of the input sound signal is a predetermined magnitude, the attack gain AG is reduced. By reducing the overall, the attack level can be reduced below the maximum level MAX. As a result, a phenomenon in which the input sound signal is output at a predetermined magnitude or more can be prevented.

또한, 도면 부호(302)를 참조하면, 이는 상기 어택 레벨이 상기 최대 레벨(MAX)과 상기 상위 임계 레벨(HTH) 사이의 값을 가지는 경우를 나타낸다. 이 경우에, 상기 어택 레벨은 절대적인 문제점은 없으나, 다소 왜곡될 소지가 있다고 판단된다. 따라서, 상기 어택 레벨이 상기 최대 레벨(MAX)과 상기 상위 임계 레벨(HTH) 사이의 값을 갖는 경우에 상기 사운드 조절 장치는 상기 어택 게인(AG)이 기준 게인(BG) 이상인지 또는 이하인지 여부를 확인한다.Also referring to 302, this represents the case where the attack level has a value between the maximum level MAX and the upper threshold level HTH. In this case, the attack level is not an absolute problem, but it is determined that the attack level may be somewhat distorted. Therefore, when the attack level has a value between the maximum level MAX and the upper threshold level HTH, the sound control apparatus determines whether the attack gain AG is greater than or equal to the reference gain BG. Check.

상기 기준 게인(BG)은 상기 입력 사운드 신호와 곱해진 뒤에 상기 기준 게인(BG)의 승수만큼 쉬프트한 출력 신호가 상기 입력 사운드 신호와 동일하도록 설정되는 값이며, 다시 말해, 상기 기준 게인(BG) 보다 큰 어택 게인(AG)은 상기 입력 사운드 신호를 증폭하며, 상기 기준 게인(BG) 보다 작은 어택 게인(AG)은 상기 입력 사운드 신호를 감소시킨다. 예를 들어, 상기 기준 게인(BG)이 2의8승(256)인 경우에 상기 입력 사운드 신호를 증폭하기 위한 상기 어택 게인(AG)은 256보다 큰 실수이며, 반대로 상기 입력 사운드 신호를 감소하기 위한 상기 어택 게인(AG)은 상기 256보다 작은 양의 실수가 된다. 이 때에 상기 출력 신호는 어택 레벨을 상 기 기준 게인(BG)의 승수, 즉 8만큼 오른쪽으로 쉬프트한 값이며, 결국 상기 출력 신호는 상기 어택 레벨을 상기 256으로 나눈 값과 동일한 결과를 갖는다. 이와 같이, 상기 기준 게인(BG)을 2의 소정 승수로 함으로써, 나눗셈이나 소수점 연산을 없애고 쉬프트에 의한 연산 만으로 원하는 결과를 도출함으로써, 계산에 필요한 하드웨어 수 및 계산량을 최소화할 수 있는 효과가 있다. 이하에서는 상기 기준 게인(BG)을 2의8승으로 설명하나 이는 일실시예에 불과하며 다양한 값으로 변경될 수 있음은 자명하다.The reference gain BG is a value which is set to be equal to the input sound signal after being multiplied by the input sound signal and shifted by a multiplier of the reference gain BG, that is, the reference gain BG. A larger attack gain AG amplifies the input sound signal, and an attack gain AG smaller than the reference gain BG reduces the input sound signal. For example, the attack gain AG for amplifying the input sound signal when the reference gain BG is the power of two powers 256 is a real number greater than 256, and conversely, to reduce the input sound signal. The attack gain AG is a positive real number less than 256. In this case, the output signal is a value obtained by shifting the attack level to the right by a multiplier of the reference gain BG, that is, 8, and eventually the output signal has the same result as the value obtained by dividing the attack level by 256. As described above, by setting the reference gain BG to a predetermined multiplier of 2, by eliminating division or decimal point operation and deriving a desired result only by the shift operation, the number of hardware required for calculation and the amount of calculation can be minimized. Hereinafter, the reference gain (BG) will be described as the power of 2, but this is only one embodiment and it is obvious that it can be changed to various values.

다시, 도면 부호(302)를 참조하면, 상기 어택 레벨이 상기 최대 레벨(MAX)과 상기 상위 임계 레벨(HTH) 사이의 값을 갖는 경우에 상기 기준 게인(BG)과 상기 어택 게인(AG)을 확인한다. 만약, 상기 어택 게인(AG)이 상기 기준 게인(BG)보다 큰 값인 경우라면, 상기 어택 게인(AG)을 통해 가공되는 상기 어택 레벨은 상기 기준 게인(BG)을 통해 가공되는 레벨보다 크며, 결국, 입력 사운드 신호는 어택 게인(AG)을 조절해야 할 만큼 원래의 절대값 레벨이 크지 않다고 볼 수 있다. 따라서, 상기 어택 게인(AG)을 상기 입력 사운드 신호에 아무런 변화도 주지 않는 기준 게인(BG)으로 설정할 수 있다.Referring again to reference numeral 302, the reference gain BG and the attack gain AG are determined when the attack level has a value between the maximum level MAX and the upper threshold level HTH. Check it. If the attack gain AG is greater than the reference gain BG, the attack level processed through the attack gain AG is greater than the level processed through the reference gain BG. In other words, the input sound signal is not large enough to have the original absolute value level to adjust the attack gain (AG). Therefore, the attack gain AG may be set to the reference gain BG which does not change the input sound signal.

만약, 상기 어택 게인(AG)이 상기 기준 게인(BG)보다 작은 값인 경우라면, 상기 어택 게인(AG)을 통해 가공되는 상기 어택 레벨은 상기 기준 게인(BG)을 통해 가공되는 레벨보다 작으며, 결국, 입력 사운드 신호는 어택 게인(AG)을 조절해야 할 만큼 원래의 절대값 레벨이 크다고 볼 수 있다. 따라서, 상기 어택 게인(AG)을 소정 비율로 감소시킬 수 있다.If the attack gain AG is smaller than the reference gain BG, the attack level processed through the attack gain AG is smaller than the level processed through the reference gain BG. As a result, the input sound signal may be regarded as having an original absolute value level large enough to adjust the attack gain AG. Therefore, the attack gain AG can be reduced at a predetermined rate.

도면 부호(303)를 참조하면, 이는 상기 어택 레벨이 상기 상위 임계 레벨(HTH)과 상기 하위 임계 레벨(LTH) 사이에 위치하는 경우를 나타낸다. 이 경우에는 상기 어택 레벨뿐만 아니라, 상기 입력 사운드 신호가 어느 정도 평균에 가깝다고 판단되며, 상기 사운드 레벨 조절 장치는 별도의 조절 동작을 수행하지 않는다.Referring to reference numeral 303, this represents a case where the attack level is located between the upper threshold level HTH and the lower threshold level LTH. In this case, it is determined that the input sound signal as well as the attack level is close to an average to some extent, and the sound level adjusting device does not perform a separate adjusting operation.

도면 부호(304)를 참조하면, 상기 어택 레벨은 상기 하위 임계 레벨(LTH) 이하의 값을 갖는다. 이 경우에, 도면 부호(302)에서와 유사하게 상기 어택 레벨은 절대적인 문제점은 없으나, 다소 왜곡될 소지가 있다고 판단된다. 따라서, 상기 사운드 조절 장치는 상기 어택 레벨이 상기 하위 임계 레벨(LTH) 이하의 값을 갖는 경우에 상기 어택 게인(AG)이 기준 게인(BG) 이상인지 또는 이하인지 여부를 확인하여 조절 여부를 결정한다.Referring to 304, the attack level has a value less than or equal to the lower threshold level LTH. In this case, similarly to the reference numeral 302, the attack level is not an absolute problem, but it is determined that it is likely to be somewhat distorted. Therefore, when the attack level has a value equal to or lower than the lower threshold level LTH, the sound control apparatus determines whether to adjust by checking whether the attack gain AG is greater than or equal to the reference gain BG. do.

상기 어택 레벨이 상기 하위 임계 레벨(LTH) 이하의 값을 갖는 경우에 상기 기준 게인(BG)과 상기 어택 게인(AG)을 확인한다. 만약, 상기 어택 게인(AG)이 상기 기준 게인(BG)보다 작은 값인 경우라면, 상기 어택 게인(AG)을 통해 가공되는 상기 어택 레벨은 상기 기준 게인(BG)을 통해 가공되는 레벨보다 크며, 결국, 입력 사운드 신호는 어택 게인(AG)을 조절해야 할 만큼 원래의 절대값 레벨이 작지 않다고 볼 수 있다. 따라서, 상기 어택 게인(AG)을 상기 입력 사운드 신호에 아무런 변화도 주지 않는 기준 게인(BG)으로 설정할 수 있다. 또한, 상기 어택 게인(AG)이 상기 기준 게인(BG)보다 큰 값인 경우라면, 상기 어택 게인(AG)을 통해 가공되는 상기 어택 레벨은 상기 기준 게인(BG)을 통해 가공되는 레벨보다 작으며, 결국, 입력 사운드 신호는 어택 게인(AG)을 조절해야 할 만큼 원래의 절대값 레벨이 작다 고 볼 수 있다. 따라서, 상기 어택 게인(AG)을 소정 비율로 증가시킬 수 있다.When the attack level has a value equal to or lower than the lower threshold level LTH, the reference gain BG and the attack gain AG are checked. If the attack gain AG is less than the reference gain BG, the attack level processed through the attack gain AG is greater than the level processed through the reference gain BG. In other words, the input sound signal is not small enough to have the original absolute value level to adjust the attack gain (AG). Therefore, the attack gain AG may be set to the reference gain BG which does not change the input sound signal. In addition, when the attack gain AG is greater than the reference gain BG, the attack level processed through the attack gain AG is smaller than the level processed through the reference gain BG. As a result, the input sound signal can be seen that the original absolute value level is small enough to adjust the attack gain AG. Therefore, the attack gain AG may be increased at a predetermined rate.

도 3에서 설명한 최대 레벨(MAX), 상위 임계 레벨(HTH), 및 하위 임계 레벨(LTH)을 기준으로 단계 107에서 산출한 상기 초기 어택 레벨을 확인하여 어택 게인(AG)의 조절 여부를 결정하는 구체적인 설명은 도 4 내지 도 6을 통해 상세히 설명한다.The initial attack level calculated in step 107 is determined based on the maximum level MAX, the upper threshold level HTH, and the lower threshold level LTH described in FIG. 3 to determine whether to adjust the attack gain AG. Detailed description will be described in detail with reference to FIGS. 4 to 6.

도 4는 상기 초기 어택 레벨이 최대 레벨(MAX) 이상인 경우, 어택 게인(AG)을 조절하기 위한 방법을 도시한 흐름도이다.4 is a flowchart illustrating a method for adjusting an attack gain AG when the initial attack level is greater than or equal to the maximum level MAX.

먼저, 단계 401에서 상기 사운드 레벨 조절 장치는 어택 레벨과 상기 입력 사운드 신호의 절대값 레벨을 곱하여 초기 어택 레벨을 생성한다. 이에, 단계 402에서 상기 사운드 레벨 조절 장치는 상기 생성된 초기 어택 레벨이 상기 최대 레벨(MAX) 이상인지를 판단하고, 판단 결과에 따라 선택적으로 상기 어택 게인(AG)을 조절한다. 보다 구체적으로, 상기 판단 결과 상기 생성된 초기 어택 레벨이 상기 최대 레벨(MAX) 이상이 아닌 경우 도면부호 400으로 분기하고, 상기 생성된 초기 어택 레벨이 상기 최대 레벨(MAX) 이상인 경우에는 단계 403을 수행한다. 즉, 상기 사운드 레벨 조절 장치는 단계 403에서, 상기 초기 어택 레벨이 상기 최대 레벨(MAX) 이상, 즉 비정상적으로 큰 입력 사운드 신호라고 판단하고, 상기 어택 게인(AG)에 소정 감소율(소정 레이트)을 반영하여 조절한다. 이에, 상기 사운드 레벨 조절 장치는 단계 404에서, 상기 조절된 어택 게인(AG)으로 새로운 어택 레벨을 재생성 한다. 상기 새로운 어택 레벨이 재생성 되면, 상기 사운드 레벨 조절 장치는 단계 405에서, 다시 한번 상기 어택 레벨이 상기 최대 레벨(MAX) 이상인지를 확인 하고, 상기 어택 레벨이 상기 최대 레벨(MAX) 이하로 감소되면 상기 도 1의 단계 107를 종료하고, 단계 108을 수행한다. 만약에 상기 어택 레벨이 상기 최대 레벨(MAX) 이하로 감소되지 않았다면, 상기 사운드 레벨 조절 장치는 상기 단계 403 및 상기 단계 404를 재수행하여 상기 어택 게인을 더 감소시킨다.First, in operation 401, the sound level controller generates an initial attack level by multiplying an attack level by an absolute value level of the input sound signal. In operation 402, the sound level controller determines whether the generated initial attack level is greater than or equal to the maximum level MAX, and selectively adjusts the attack gain AG according to the determination result. More specifically, if the generated initial attack level is not greater than or equal to the maximum level MAX, the reference numeral 400 branches, and if the generated initial attack level is greater than or equal to the maximum level MAX, step 403 is performed. Perform. That is, the sound level adjusting apparatus determines in step 403 that the initial attack level is an input sound signal that is greater than or equal to the maximum level MAX, i.e., abnormally large, and provides a predetermined reduction rate (predetermined rate) to the attack gain AG. Adjust by reflecting. Thus, in step 404, the sound level adjusting device regenerates a new attack level with the adjusted attack gain AG. When the new attack level is regenerated, the sound level adjusting device checks again in step 405 whether the attack level is greater than or equal to the maximum level MAX, and if the attack level is reduced below the maximum level MAX, Step 107 of FIG. 1 ends, and step 108 is performed. If the attack level has not been reduced below the maximum level MAX, the sound level adjusting device performs the steps 403 and 404 again to further reduce the attack gain.

결국, 상기 초기 어택 레벨이 상기 최대 레벨(MAX) 보다 큰 경우에는 상기 초기 어택 레벨이 상기 최대 레벨(MAX) 이하 값으로 설정될 수 있도록 상기 어택 게인(AG)이 조절된다.As a result, when the initial attack level is greater than the maximum level MAX, the attack gain AG is adjusted to set the initial attack level to a value less than or equal to the maximum level MAX.

도 5는 초기 어택 레벨이 최대 레벨(MAX)과 상위 임계 레벨(HTH) 사이인 경우, 어택 게인(AG)을 조절하기 위한 방법을 도시한 흐름도이다.5 is a flowchart illustrating a method for adjusting the attack gain AG when the initial attack level is between the maximum level MAX and the upper threshold level HTH.

도 5를 참조하면, 상기 사운드 레벨 조절 장치는 도 4의 단계 402의 판단 결과 초기 어택 레벨이 최대 레벨(MAX) 이하인 경우에 도면부호 400으로 분기하여 단계 501을 수행한다. 즉, 단계 501에서 상기 사운드 레벨 조절 장치는 상기 초기 어택 레벨이 상위 임계 레벨(HTH) 이상인지를 더 확인한다. 상기 단계 402 및 상기 단계 501의 판단 결과 상기 초기 어택 레벨이 상기 최대 레벨(MAX)과 상기 상위 임계 레벨(HTH) 사이 값인 경우 상기 사운드 레벨 조절 장치는 단계 502를 수행하고, 상기 초기 어택 레벨이 상기 최대 레벨(MAX)과 상기 상위 임계 레벨(HTH) 사이 값이 아닐 경우에는 도면부호 500으로 분기한다.Referring to FIG. 5, when the initial attack level is less than or equal to the maximum level MAX, the sound level adjusting device branches to 400 and performs step 501. That is, in operation 501, the sound level adjusting apparatus further confirms whether the initial attack level is higher than or equal to a high threshold level HTH. If the initial attack level is a value between the maximum level MAX and the upper threshold level HTH as a result of the determination of the step 402 and the step 501, the sound level adjusting apparatus performs step 502, and the initial attack level is If it is not the value between the maximum level MAX and the upper threshold level HTH, the reference numeral 500 branches.

보다 구체적으로 상기 사운드 레벨 조절 장치는 초기 어택 레벨을 상기 최대 레벨(MAX)과 상기 상위 임계 레벨(HTH) 사이 값으로 판단 하면, 단계 502에서, 상기 초기 어택 레벨을 생성한 어택 게인(AG)이 기준 게인(BG) 이상인지 여부를 더 판단한다. 이 때, 상기 어택 게인(AG)이 상기 기준 게인(BG) 이상이라면, 상기 사운드 레벨 조절 장치는 상기 기준 게인(BG)을 상기 어택 게인(AG)으로 설정한다(단계 503). 만약, 상기 어택 게인(AG)이 상기 기준 게인(BG) 이하라면, 상기 사운드 레벨 조절 장치는 상기 어택 게인(AG)에 소정 감소율을 반영하여 보다 작은 값의 어택 게인(AG)을 새로 설정한다(단계 504).More specifically, when the sound level controller determines an initial attack level as a value between the maximum level MAX and the upper threshold level HTH, in step 502, the attack gain AG that generates the initial attack level is determined. It is further determined whether the reference gain (BG) or more. At this time, if the attack gain AG is equal to or greater than the reference gain BG, the sound level adjusting device sets the reference gain BG as the attack gain AG (step 503). If the attack gain AG is less than or equal to the reference gain BG, the sound level control apparatus newly sets a smaller gain gain AG by reflecting a predetermined reduction ratio to the attack gain AG ( Step 504).

보다 구체적으로, 상기 사운드 레벨 조절 장치는 상기 어택 게인(AG)이 상기 기준 게인(BG)보다 큰 값인 경우라면, 상기 어택 게인(AG)은 입력 사운드 신호를 커지게한다. 따라서, 상기 초기 어택 레벨이 최대 레벨(MAX)과 상위 임계 레벨(HTH) 사이에 위치할 때, 상기 어택 게인(AG)에 의해 상기 입력 사운드 신호가 더 커지지 않도록 하기 위하여 상기 기준 게인(BG)을 상기 어택 게인(AG)으로 설정한다(단계 503). More specifically, when the attack gain AG is greater than the reference gain BG, the attack gain AG increases the input sound signal. Therefore, when the initial attack level is located between the maximum level MAX and the upper threshold level HTH, the reference gain BG is increased so that the input sound signal is not made larger by the attack gain AG. The attack gain AG is set (step 503).

이와는 다르게, 상기 사운드 레벨 조절 장치는 상기 어택 게인(AG)이 상기 기준 게인(BG)보다 작은 값인 경우라면, 상기 어택 게인(AG)은 입력 사운드 신호를 감소시킨다. 따라서 상기 초기 어택 레벨이 최대 레벨(MAX)과 상위 임계 레벨(HTH) 사이에 위치할 때, 이 경우에도 상기 어택 게인(AG)에 의해 상기 입력 사운드 신호가 더 커져 상기 초기 어택 레벨이 상기 최대 레벨(MAX)을 초과할 가능성이 높다고 판단되므로 소정 감소율을 반영하여 상기 어택 게인(AG)을 줄인다(단계 504).Alternatively, when the attack gain AG is less than the reference gain BG, the attack gain AG reduces the input sound signal. Therefore, when the initial attack level is located between the maximum level MAX and the upper threshold level HTH, the input gain signal is further increased by the attack gain AG so that the initial attack level becomes the maximum level. Since it is determined that the possibility of exceeding MAX is high, the attack gain AG is reduced to reflect a predetermined reduction rate (step 504).

다음으로, 상기 사운드 조절 장치는 상기 조절된 어택 게인(AG)을 이용하여 도 1의 단계 107을 종료하고 단계 108을 수행할 수 있다.Next, the sound control device may terminate step 107 of FIG. 1 and perform step 108 using the adjusted attack gain AG.

도 6은 초기 어택 레벨이 하위 임계 레벨(LTH) 이하인 경우, 어택 게인(AG) 을 조절하기 위한 방법을 도시한 흐름도이다.FIG. 6 is a flowchart illustrating a method for adjusting the attack gain AG when the initial attack level is less than or equal to the lower threshold level LTH.

도 6을 참조하면, 상기 사운드 레벨 조절 장치는 도 5의 단계 501의 판단 결과 초기 어택 레벨이 상위 임계 레벨(HTH) 이하인 경우에 도면부호 500으로 분기 후 단계 601을 수행한다. 즉, 단계 601에서 상기 사운드 레벨 조절 장치는 상기 초기 어택 레벨이 하위 임계 레벨(LTH) 이하인지를 더 확인한다. 상기 단계 402, 상기 단계 501, 및 상기 단계 601의 판단 결과 상기 초기 어택 레벨이 상기 하위 임계 레벨(LTH) 이하 값인 경우 상기 사운드 레벨 조절 장치는 단계 602를 수행하고, 상기 초기 어택 레벨이 상기 하위 임계 레벨(LTH) 값과 상기 상위 임계 레벨(HTH) 사이 값일 경우에는 정상적인 신호라고 판단하여 도 1의 단계 107을 종료한다.Referring to FIG. 6, if the initial attack level is less than or equal to the upper threshold level HTH as a result of the determination of step 501 of FIG. 5, the sound level adjusting apparatus performs step 601 after branching to 500. That is, in operation 601, the sound level adjusting apparatus further confirms whether the initial attack level is lower than or equal to the lower threshold level LTH. If the initial attack level is less than or equal to the lower threshold level (LTH) as a result of the determination of the step 402, the step 501, and the step 601, the sound level adjusting apparatus performs step 602, and the initial attack level is the lower threshold. If it is a value between the level LTH and the upper threshold level HTH, it is determined that the signal is normal and the operation 107 of FIG. 1 ends.

보다 구체적으로 상기 사운드 레벨 조절 장치는 초기 어택 레벨을 상기 하위 임계 레벨(LTH) 이하 값으로 판단 하면, 단계 602에서, 상기 초기 어택 레벨을 생성한 어택 게인(AG)이 기준 게인(BG) 이하인지 여부를 더 판단한다. 이 때, 상기 어택 게인(AG)이 상기 기준 게인(BG) 이하라면, 상기 사운드 레벨 조절 장치는 상기 기준 게인(BG)을 상기 어택 게인(AG)으로 설정한다(단계 603). 만약, 상기 어택 게인(AG)이 상기 기준 게인(BG) 이상이라면, 상기 사운드 레벨 조절 장치는 상기 어택 게인(AG)에 소정 증가율(소정 레이트)을 반영하여 보다 큰 값의 어택 게인(AG)을 새로 설정한다(단계 604).More specifically, when the sound level control device determines the initial attack level as the lower threshold level (LTH) or less, in step 602, the attack gain AG that generates the initial attack level is equal to or less than the reference gain BG. Determine more. At this time, if the attack gain AG is less than or equal to the reference gain BG, the sound level adjusting device sets the reference gain BG to the attack gain AG (step 603). If the attack gain AG is equal to or greater than the reference gain BG, the sound level control apparatus reflects a predetermined increase rate (predetermined rate) to the attack gain AG to apply a larger value of the attack gain AG. The new setting is made (step 604).

보다 구체적으로, 상기 사운드 레벨 조절 장치는 상기 어택 게인(AG)이 상기 기준 게인(BG)보다 작은 값인 경우라면, 상기 어택 게인(AG)은 입력 사운드 신호를 감소시킨다. 따라서 상기 초기 어택 레벨이 상기 하위 임계 레벨(LTH) 이하에 위치할 때, 상기 어택 게인(AG)에 의해 상기 입력 사운드 신호가 더 감소되지 않도록 하기 위하여 상기 기준 게인(BG)을 상기 어택 게인(AG)으로 설정한다(단계 603).More specifically, when the attack gain AG is less than the reference gain BG, the attack gain AG reduces the input sound signal. Therefore, when the initial attack level is below the lower threshold level LTH, the reference gain BG is changed to the attack gain AG so that the input sound signal is not further reduced by the attack gain AG. (Step 603).

이와는 다르게, 상기 사운드 레벨 조절 장치는 상기 어택 게인(AG)이 상기 기준 게인(BG)보다 큰 값인 경우라면, 상기 어택 게인(AG)은 입력 사운드 신호를 커지게한다. 따라서 상기 초기 어택 레벨이 상기 하위 임계 레벨(LTH) 보다 작더라도 상기 초기 어택 레벨은 상기 어택 게인(AG)에 의해 이미 커졌다고 판단된다. 따라서, 상기 사운드 레벨 조절 장치는 미약한 입력 사운드 신호를 적절히 키우기 위하여 소정 증가율을 반영하여 상기 어택 레벨을 증가시킨다(단계 604).Alternatively, if the attack gain AG is greater than the reference gain BG, the attack gain AG increases the input sound signal. Therefore, even if the initial attack level is smaller than the lower threshold level LTH, it is determined that the initial attack level has already been increased by the attack gain AG. Thus, the sound level adjusting device increases the attack level by reflecting a predetermined increase rate in order to properly raise the weak input sound signal (step 604).

다음으로, 상기 사운드 조절 장치는 상기 조절된 어택 게인(AG)을 이용하여 도 1의 단계 107을 종료하고 단계 108을 수행할 수 있다.Next, the sound control device may terminate step 107 of FIG. 1 and perform step 108 using the adjusted attack gain AG.

결국, 본 발명에 따른 상기 사운드 레벨 조절 장치는 상기 도 1의 단계 107를 설명하는 상기 도 3내지 도 5의 실시예를 통해 조절된 어택 게인(AG)을 이용하여 단계 108에서 효과적으로 레벨 조절된 출력 신호를 생성할 수 있다.As a result, the sound level adjusting apparatus according to the present invention effectively outputs the level adjusted in step 108 using the attack gain AG adjusted through the embodiment of FIGS. 3 to 5 illustrating the step 107 of FIG. You can generate a signal.

보다 구체적으로 상기 단계 108에서는 상기 입력 사운드 신호에 상기 어택 게인(AG)을 곱한 어택 레벨을 상기 어택 게인(AG)의 승수만큼 쉬프트하여 출력 신호가 생성된다. 즉, 상기 사운드 레벨 조절 장치는 상기 초기 어택 레벨이 상기 상위 임계 레벨(HTH)과 상기 하위 임계 레벨(LTH) 사이의 값인 경우, 상기 기준 게인(BG)의 승수만큼을 쉬프트하여 상기 출력 신호를 생성하고, 이와 달리 상기 초기 어택 레벨이 상기 최대 레벨(MAX) 이상이거나 상기 최대 레벨(MAX)과 상기 상위 임 계 레벨(HTH) 사이 값이거나 또는 상기 초기 어택 레벨이 상기 하위 임계 레벨(LTH) 이하인 경우에는 상기 어택 게인(AG)을 조절하여 계산된 어택 레벨을 상기 기준 게인(BG)의 승수만큼 쉬프트하여 상기 출력 신호를 생성할 수 있다.More specifically, in step 108, an output signal is generated by shifting an attack level obtained by multiplying the input gain signal by the attack gain AG by a multiplier of the attack gain AG. That is, when the initial attack level is a value between the upper threshold level HTH and the lower threshold level LTH, the sound level adjusting device shifts the multiplier of the reference gain BG to generate the output signal. In contrast, when the initial attack level is greater than or equal to the maximum level MAX, a value between the maximum level MAX and the upper threshold level HTH, or the initial attack level is less than or equal to the lower threshold level LTH. The output signal may be generated by shifting the attack level calculated by adjusting the attack gain AG by a multiplier of the reference gain BG.

결국, 본 발명의 일실시예에 따른 상기 사운드 레벨 조절 장치는 입력 사운드 신호에 차별화된 어택 게인(AG)을 제공하여 신호의 왜곡을 최소화할 뿐만 아니라, 어택 레벨을 쉬프트 연산기를 통해 쉬프트함으로써, 연산에 필요한 시간 및 과정을 줄여 속도 향상을 꾀할 수 있다.As a result, the sound level control apparatus according to an embodiment of the present invention provides a differentiated attack gain (AG) to the input sound signal to minimize the distortion of the signal and shifts the attack level through a shift calculator, Speed up can be achieved by reducing the time and process required for the system.

도 7은 본 발명의 일실시예에 따른 사운드 레벨 조절 장치(700)를 설명하기 위한 블록도이다.7 is a block diagram illustrating a sound level adjusting apparatus 700 according to an embodiment of the present invention.

도 7에서 보는 바와 같이, 상기 사운드 레벨 조절 장치(700)는 입력부(710), 신호 처리부(720), 출력부(730), 및 어택 게인 조절부(740)를 포함한다.As shown in FIG. 7, the sound level adjusting apparatus 700 includes an input unit 710, a signal processor 720, an output unit 730, and an attack gain adjuster 740.

상기 입력부(710)는 상기 입력 사운드 신호의 절대값 레벨에 어택 게인(AG)을 곱하여 초기 어택 레벨을 생성한다. 상기 어택 게인(AG)은 도 1의 101단계에서 설명한 상기 제1 어택 게인(AG1), 또는 상기 제2 어택 게인(AG2) 일 수 있다. The input unit 710 generates an initial attack level by multiplying the absolute gain level of the input sound signal by the attack gain AG. The attack gain AG may be the first attack gain AG1 or the second attack gain AG2 described in step 101 of FIG. 1.

상기 신호 처리부(720)는 상기 초기 어택 레벨과 최대 레벨(MAX)을 비교하여, 상기 초기 어택 레벨이 상기 최대 레벨(MAX) 이상인 경우에 상기 초기 어택 레벨이 상기 최대 레벨(MAX) 이하가 될 때까지 상기 어택 게인(AG)을 일정 레이트(rate)씩 감소시켜서 변경된 어택 레벨을 생성한다.The signal processor 720 compares the initial attack level with the maximum level MAX, and when the initial attack level becomes less than or equal to the maximum level MAX when the initial attack level is greater than or equal to the maximum level MAX. Until then, the attack gain AG is reduced by a certain rate to generate a changed attack level.

상기 출력부(730)는 상기 신호 처리부(720)에서의 변경된 어택 레벨을 이용하거나 상기 초기 어택 레벨 중에서 어느 하나를 상기 기준 레벨로 나눈 출력 신호 를 생성한다.The output unit 730 generates an output signal using the changed attack level of the signal processor 720 or dividing any one of the initial attack levels by the reference level.

상기 어택 게인 조절부(740)는 상기 초기 어택 레벨이 상기 최대 레벨(MAX) 이하인 경우에 상기 초기 어택 레벨을 조절하여 조절된 어택 게인(AG)을 생성한다.The attack gain adjuster 740 generates the adjusted attack gain AG by adjusting the initial attack level when the initial attack level is less than or equal to the maximum level MAX.

만약, 상기 어택 게인(AG)이 상기 어택 게인 조절부(740)에서 조절되는 경우에 상기 출력부(730)는 상기 어택 게인 조절부(740)에서의 조절된 어택 게인(AG)이 반영된 변경된 어택 레벨을 상기 입력부(710)로부터 수집하고, 상기 입력부(710)로부터의 상기 변경된 어택 레벨을 상기 기준 게인(BG)로 나눈 출력 신호를 생성한다.If the attack gain AG is adjusted by the attack gain adjusting unit 740, the output unit 730 may have a modified attack reflecting the adjusted attack gain AG in the attack gain adjusting unit 740. A level is collected from the input unit 710 and generates an output signal obtained by dividing the changed attack level from the input unit 710 by the reference gain BG.

도 8은 도 7에서의 상기 신호 처리부(720)를 보다 구체적으로 설명하기 위한 도면이다.FIG. 8 is a diagram for describing the signal processor 720 of FIG. 7 in more detail.

도 8을 참조하면, 상기 신호 처리부(720)는 제1 비교기(721), 어택 게인 조절기(722), 어택 레벨 생성기(723), 및 제2 비교기(724)를 포함한다.Referring to FIG. 8, the signal processor 720 includes a first comparator 721, an attack gain adjuster 722, an attack level generator 723, and a second comparator 724.

보다 구체적으로, 상기 제1 비교기(721)는 상기 도 7의 입력부(710)로부터의 출력을 받아 초기 어택 레벨이 상기 최대 레벨(MAX) 이상인지 여부를 확인한다. 이에, 상기 초기 어택 레벨이 상기 최대 레벨(MAX) 이상이면, 상기 어택 게인 조절기(722)에서 소정 감소율을 반영하여 상기 초기 어택 레벨의 산출에 사용된 어택 게인(AG)을 감소시킨다. 또한, 어택 레벨 생성기(723)는 상기 감소된 어택 게인(AG)과 상기 입력 사운드 신호의 절대값 레벨(IL)로부터 새로운 어택 레벨을 생성한다. 이에 따라, 상기 제2 비교기(724)는 상기 새로운 어택 레벨이 상기 최대 레벨(MAX) 이상인지 여부를 다시 한번 판단한다. 만약, 상기 새로운 어택 레벨이 상 기 최대 레벨(MAX) 이상인 경우에 상기 제2 비교기(724)의 출력은 상기 어택 게인 조절기(722)의 입력으로 피드백되어 상술한 어택 게인(AG) 감소 및 새로운 어택 레벨의 생성 과정을 반복한다. 만약, 상기 새로운 어택 레벨이 상기 최대 레벨(MAX) 이하인 경우라면, 상기 새로운 어택 레벨은 상기 출력부(730)의 입력이 된다. 결국, 상기 출력부(730)는 상기 새로운 어택 레벨을 상기 기준 레벨의 승수만큼 쉬프트하여 레벨 조정된 출력 신호를 생성한다.More specifically, the first comparator 721 receives the output from the input unit 710 of FIG. 7 and checks whether the initial attack level is greater than or equal to the maximum level MAX. Accordingly, when the initial attack level is greater than or equal to the maximum level MAX, the attack gain adjuster 722 may reduce the attack gain AG used to calculate the initial attack level by reflecting a predetermined reduction rate. The attack level generator 723 also generates a new attack level from the reduced attack gain AG and the absolute value level IL of the input sound signal. Accordingly, the second comparator 724 once again determines whether the new attack level is greater than or equal to the maximum level MAX. If the new attack level is greater than or equal to the maximum level MAX, the output of the second comparator 724 is fed back to the input of the attack gain adjuster 722 to reduce the above-described attack gain AG and the new attack. Repeat the level creation process. If the new attack level is less than or equal to the maximum level MAX, the new attack level becomes an input of the output unit 730. As a result, the output unit 730 shifts the new attack level by a multiplier of the reference level to generate a level adjusted output signal.

도 9는 도 7에서의 어택 게인(AG) 조절부(740)를 보다 구체적으로 설명하기 위한 도면이다.9 is a view for explaining the attack gain (AG) control unit 740 in FIG. 7 in more detail.

만약, 상기 신호 처리부(720)의 제1 비교기(721)가 상기 초기 어택 레벨이 상기 최대 레벨(MAX) 이하라고 판단하는 경우에 상기 제1 비교기(721)로부터의 소정 제어 출력에 따라 제3 비교기(741)가 동작한다.If the first comparator 721 of the signal processor 720 determines that the initial attack level is less than or equal to the maximum level MAX, a third comparator according to a predetermined control output from the first comparator 721. 741 is operated.

이에 따라, 상기 제3 비교기(741)는 상기 초기 어택 레벨이 상기 최대 레벨(MAX)과 상기 상위 레벨 사이인 경우인지, 또는 상기 초기 어택 레벨이 상기 하위 레벨 이하인지를 나타내는 제어 신호를 생성한다.Accordingly, the third comparator 741 generates a control signal indicating whether the initial attack level is between the maximum level MAX and the upper level, or whether the initial attack level is less than or equal to the lower level.

상기 제3 비교기(741)로부터의 제어 신호에 따라 상기 제4 비교기(742)는 상기 초기 어택 레벨에 사용된 상기 어택 게인(AG)이 상기 기준 게인(BG) 보다 큰지를 알리는 신호를 어택 게인 조절기(744)로 전달한다. 이때 상기 어택 게인 조절기(744)는 상기 어택 게인(AG)이 상기 기준 게인(BG)이 되도록 처리한다. According to a control signal from the third comparator 741, the fourth comparator 742 may generate a signal indicating whether the attack gain AG used in the initial attack level is greater than the reference gain BG. Forward to 744. At this time, the attack gain adjuster 744 processes the attack gain AG to be the reference gain BG.

또한, 상기 제3 비교기(741)로부터의 제어 신호에 따라 상기 제4 비교기(742)는 상기 초기 어택 레벨에 사용된 상기 어택 게인(AG)이 상기 기준 게인(BG) 보다 작은지를 알리는 신호를 어택 게인 감소기(745)로 전달한다. 이때, 상기 어택 게인 감소기(745)는 상기 어택 게인(AG)을 소정 비율로 감소시킨다 In addition, according to the control signal from the third comparator 741, the fourth comparator 742 attacks a signal indicating whether the attack gain AG used at the initial attack level is smaller than the reference gain BG. Transfer to a gain reducer 745. At this time, the attack gain reducer 745 reduces the attack gain AG at a predetermined ratio.

상기 제3 비교기(741)로부터의 제어 신호에 따라 상기 제5 비교기(743)는 상기 초기 어택 레벨에 사용된 상기 어택 게인(AG)이 상기 기준 게인(BG) 보다 작은지를 알리는 신호를 어택 게인 조절기(744)로 전달한다. 이때, 상기 어택 게인 조절기(744)는 상기 어택 게인(AG)이 상기 기준 게인(BG)이 되도록 처리한다. In response to a control signal from the third comparator 741, the fifth comparator 743 sends a signal indicating whether the attack gain AG used in the initial attack level is smaller than the reference gain BG. Forward to 744. In this case, the attack gain adjuster 744 processes the attack gain AG to be the reference gain BG.

또한, 상기 제3 비교기(741)로부터의 제어 신호에 따라 상기 제5 비교기(743)는 상기 초기 어택 레벨에 사용된 어택 게인(AG)이 기준 게인(BG) 보다 큰 지를 알리는 신호를 어택 게인 증가기(746)로 전달한다. 이때, 상기 어택 게인 증가기(746)는 상기 어택 게인(AG)이 더 커지도록 처리한다.In addition, according to the control signal from the third comparator 741, the fifth comparator 743 increases the attack gain by a signal indicating whether the attack gain AG used in the initial attack level is larger than the reference gain BG. To 746. At this time, the attack gain increaser 746 processes the attack gain AG to become larger.

상기 어택 게인 조절부(740)에서 조절된 상기 어택 게인(AG)은 어택 레벨의 산출에 이용될 수 있도록 상기 입력부(710)로 전달된다. The attack gain AG adjusted by the attack gain control unit 740 is transferred to the input unit 710 so that the attack gain AG may be used to calculate the attack level.

도 10은 도 7에서의 출력부(730)를 보다 구체적으로 설명하기 위한 도면이다.FIG. 10 is a diagram for describing the output unit 730 in FIG. 7 in more detail.

상술한 바와 같이, 상기 출력부(730)는 스위치(731)를 이용하여 상기 입력부(710)에서 생성되는 초기 어택 레벨 또는 상기 신호 처리부(720)에서 처리된 상기 변경된 어택 레벨을 선택하여 출력 신호를 생성한다. 상기 출력부(730)는 상기 입력된 어택 레벨을 원래의 입력 사운드 신호와 유사한 크기를 갖도록 상기 기준 게인(BG)의 승수, 예를 들어, 2의 8승 만큼, 즉, 8비트 오른쪽으로 쉬프트하여 상기 출력 신호를 생성하는 쉬프트 연산기(732)를 포함한다. 상기 쉬프트 연산기(732) 를 통해 부동 소수점의 곱셈 연산 등을 수행하지 않더라도 쉬프트 연산만으로 필요한 연산이 가능하므로 보다 빠른 처리 속도를 갖는다.As described above, the output unit 730 selects an initial attack level generated by the input unit 710 or the changed attack level processed by the signal processor 720 by using a switch 731 to output an output signal. Create The output unit 730 shifts the input attack level by the multiplier of the reference gain BG, for example, 8 power of 2, that is, 8 bits to the right to have a magnitude similar to that of the original input sound signal. A shift operator 732 for generating the output signal. Since the shift operator 732 does not perform a floating point multiplication operation or the like, a necessary operation can be performed only by the shift operation, thereby achieving a faster processing speed.

본 발명의 실시예들은 다양한 컴퓨터로 구현되는 동작을 수행하기 위한 프로그램 명령을 포함하는 컴퓨터 판독 가능 매체를 포함한다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체는 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM, DVD와 같은 광기록 매체, 플롭티컬 디스크와 같은 자기-광 매체, 및 롬, 램, 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 상기 매체는 프로그램 명령, 데이터 구조 등을 지정하는 신호를 전송하는 반송파를 포함하는 광 또는 금속선, 도파관 등의 전송 매체일 수도 있다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다.Embodiments of the invention include a computer readable medium containing program instructions for performing various computer-implemented operations. The computer readable medium may include program instructions, data files, data structures, etc. alone or in combination. The media may be those specially designed and constructed for the purposes of the present invention, or they may be of the kind well-known and available to those having skill in the computer software arts. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tape, optical recording media such as CD-ROMs, DVDs, magnetic-optical media such as floppy disks, and ROM, RAM, flash memory, and the like. Hardware devices specifically configured to store and execute the same program instructions are included. The medium may be a transmission medium such as an optical or metal wire, a waveguide, or the like including a carrier wave for transmitting a signal specifying a program command, a data structure, or the like. Examples of program instructions include not only machine code generated by a compiler, but also high-level language code that can be executed by a computer using an interpreter or the like.

이상과 같이 본 발명에서는 구체적인 구성 소자 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상의 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다.As described above, the present invention has been described by specific embodiments such as specific components and the like, but the embodiments and the drawings are provided only to help a more general understanding of the present invention, and the present invention is not limited to the above embodiments. For those skilled in the art, various modifications and variations are possible from such description.

따라서, 본 발명의 사상은 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.Therefore, the spirit of the present invention should not be limited to the described embodiments, and all the things that are equivalent to or equivalent to the claims as well as the following claims will belong to the scope of the present invention. .

본 발명에 따른 사운드 조절 방법 및 장치에서는, 입력 사운드 신호의 절대값 레벨과 어택 게인을 곱한 어택 레벨을 비교하고, 사전에 설정한 최대 레벨, 상위 임계 레벨, 및 하위 임계 레벨을 기반으로 상기 어택 게인을 조절함으로써, 입력 사운드 신호의 변형을 최소화하면서도 동일한 범위의 레벨로 소리가 출력되도록 처리할 수 있다.In the sound control method and apparatus according to the present invention, an attack level obtained by multiplying an absolute gain level and an attack gain of an input sound signal, and comparing the attack gain based on a preset maximum level, an upper threshold level, and a lower threshold level By adjusting, the sound can be processed to be output at the same range of levels while minimizing the deformation of the input sound signal.

본 발명에 따른 사운드 조절 방법 및 장치에서는, 입력 사운드 신호에 포함된 노이즈의 영향이 최소화되도록 할 수 있다.In the sound adjusting method and apparatus according to the present invention, it is possible to minimize the influence of noise included in the input sound signal.

본 발명에 따른 사운드 조절 방법 및 장치에서는, 입력 사운드 신호의 데이터 크기를 반영하여 어택 게인을 설정함으로써 입력 사운드 신호의 왜곡을 최소화할 수 있다.In the sound control method and apparatus according to the present invention, the distortion of the input sound signal can be minimized by setting the attack gain by reflecting the data size of the input sound signal.

Claims (19)

입력 사운드 신호의 절대값 레벨에 어택 게인을 곱하여 어택 레벨을 계산하는 단계;Calculating an attack level by multiplying an absolute gain level of an input sound signal by an attack gain; 상기 어택 레벨과 소정 최대 레벨을 비교하는 단계; 및Comparing the attack level with a predetermined maximum level; And 상기 비교 결과에 따라 상기 어택 게인을 조절하는 단계 Adjusting the attack gain according to the comparison result 를 포함하는 것을 특징으로 하는 사운드 레벨 조절 방법.Sound level control method comprising a. 제1항에 있어서,The method of claim 1, 상기 입력 사운드 신호의 데이터 크기가 소정치 이상인 경우에 상기 어택 게인을 증가시키는 단계; 및Increasing the attack gain when the data size of the input sound signal is greater than or equal to a predetermined value; And 상기 데이터의 크기가 상기 소정치 보다 작은 경우에 상기 어택 게인을 감소시키는 단계Reducing the attack gain when the size of the data is smaller than the predetermined value 를 더 포함하는 것을 특징으로 하는 사운드 레벨 조절 방법.Sound level control method further comprising a. 제1항에 있어서,The method of claim 1, 상기 입력 사운드 신호의 노이즈를 감지하여 제거하는 단계Detecting and removing noise of the input sound signal 를 더 포함하는 것을 특징으로 하는 사운드 레벨 조절 방법.Sound level control method further comprising a. 입력 사운드 신호의 절대값 레벨에 어택 게인을 곱하여 구한 초기 어택 레벨 과 소정 최대 레벨을 비교하는 단계;Comparing an initial attack level determined by multiplying an attack gain by an absolute value level of the input sound signal and a predetermined maximum level; 상기 초기 어택 레벨이 상기 소정 최대 레벨 이상인 경우에 상기 초기 어택 레벨이 상기 소정 최대 레벨 이하가 될 때까지 상기 어택 게인을 일정 레이트(rate)씩 감소시켜서 변경된 어택 레벨을 생성하는 단계; 및Generating a modified attack level by decreasing the attack gain by a predetermined rate until the initial attack level is less than or equal to the predetermined maximum level when the initial attack level is greater than or equal to the predetermined maximum level; And 상기 초기 어택 레벨이 상기 소정 최대 레벨 보다 작은 경우에 상기 어택 게인을 조절하여 조절된 어택 게인을 생성하는 단계Generating an adjusted attack gain by adjusting the attack gain when the initial attack level is smaller than the predetermined maximum level. 를 포함하는 것을 특징으로 하는 사운드 레벨 조절 방법.Sound level control method comprising a. 제4항에 있어서,The method of claim 4, wherein 상기 절대값 레벨은 상기 입력 사운드 신호의 일정 구간에서의 최대 절대값 레벨인 것을 특징으로 하는 사운드 레벨 조절 방법.And the absolute value level is a maximum absolute value level in a predetermined section of the input sound signal. 제4항에 있어서,The method of claim 4, wherein 상기 초기 어택 레벨을 기준 게인으로 나눈 출력 신호를 생성하는 단계Generating an output signal obtained by dividing the initial attack level by a reference gain 를 더 포함하는 것을 특징으로 하는 사운드 레벨 조절 방법.Sound level control method further comprising a. 제4항에 있어서,The method of claim 4, wherein 상기 조절된 어택 게인을 상기 입력 사운드 신호에 곱한 레벨을 기준 게인으로 나눈 출력 신호를 생성하는 단계Generating an output signal obtained by dividing the adjusted attack gain by a level obtained by multiplying the input sound signal by a reference gain; 를 더 포함하는 것을 특징으로 하는 사운드 레벨 조절 방법.Sound level control method further comprising a. 제4항에 있어서,The method of claim 4, wherein 상기 변경된 어택 레벨을 기준 게인으로 나눈 출력 신호를 생성하는 단계Generating an output signal obtained by dividing the changed attack level by a reference gain 를 더 포함하는 것을 특징으로 하는 사운드 레벨 조절 방법.Sound level control method further comprising a. 제6항 내지 제8항 중 어느 한 항에 있어서,The method according to any one of claims 6 to 8, 상기 기준 게인은 2의 8승(256)인 것을 특징으로 하는 사운드 레벨 조절 방법.And said reference gain is eight powers (256) of two. 제4항에 있어서,The method of claim 4, wherein 상기 입력 사운드 신호가 일정 레벨 이하인 경우에만 상기 어택 게인이 이용되는 것을 특징으로 하는 사운드 레벨 조절 방법.And the attack gain is used only when the input sound signal is below a predetermined level. 제4항에 있어서,The method of claim 4, wherein 상기 입력 사운드 신호가 제1 레벨 이하인 경우에 상기 어택 게인은 제1 값을 가지고, 상기 입력 사운드 신호가 제2 레벨 이상인 경우에 상기 어택 게인은 제2 값을 가지는 것을 특징으로 하는 사운드 레벨 조절 방법.And the attack gain has a first value when the input sound signal is less than or equal to the first level, and the attack gain has a second value when the input sound signal is greater than or equal to the second level. 제4항에 있어서,The method of claim 4, wherein 상기 조절된 어택 게인을 생성하는 단계에서,In the step of generating the adjusted attack gain, 상기 초기 어택 레벨이 상기 소정 최대 레벨 보다 작고 상위 임계 레벨보다 큰 경우에, 상기 어택 게인이 상기 기준 게인 보다 크면 상기 어택 게인을 상기 기준 게인으로 설정하고, 그렇지 않으면 상기 어택 게인을 일정 레이트로 감소시키는 것을 특징으로 하는 사운드 레벨 조절 방법.If the initial attack level is less than the predetermined maximum level and higher than the upper threshold level, the attack gain is set to the reference gain if the attack gain is greater than the reference gain, otherwise the attack gain is reduced to a constant rate. Sound level adjustment method, characterized in that. 제4항에 있어서,The method of claim 4, wherein 상기 조절된 어택 게인을 생성하는 단계에서,In the step of generating the adjusted attack gain, 상기 초기 어택 레벨이 상기 소정 최대 레벨 보다 작고 하위 임계 레벨 보다 작은 경우에, 상기 어택 게인이 상기 기준 게인 보다 작으면 상기 어택 게인을 상기 기준 게인으로 설정하고, 그렇지 않으면 상기 어택 게인을 일정 레이트로 증가시키는 것을 특징으로 하는 사운드 레벨 조절 방법.If the initial attack level is less than the predetermined maximum level and less than the lower threshold level, the attack gain is set to the reference gain if the attack gain is less than the reference gain, otherwise the attack gain is increased at a constant rate. Sound level control method characterized in that the. 제4항에 있어서,The method of claim 4, wherein 상기 입력 사운드 신호의 데이터 크기가 소정치 이상인 경우에 상기 어택 게인을 증가시키는 단계; 및Increasing the attack gain when the data size of the input sound signal is greater than or equal to a predetermined value; And 상기 입력 사운드 신호의 데이터 크기가 소정치 보다 작은 경우에 상기 어택 게인을 감소시키는 단계Reducing the attack gain when the data size of the input sound signal is smaller than a predetermined value 를 더 포함하는 것을 특징으로 하는 사운드 레벨 조절 방법.Sound level control method further comprising a. 제1항 내지 제8항, 제10항 내지 제14항 중 어느 하나의 방법을 실행시키기 위한 프로그램을 기록한 컴퓨터 판독 가능한 기록매체.A computer-readable recording medium having recorded thereon a program for executing the method of any one of claims 1 to 8 and 10 to 14. 입력 사운드 신호의 절대값 레벨에 어택 게인을 곱하여 초기 어택 레벨을 생성하는 입력부;An input unit to generate an initial attack level by multiplying an absolute gain level of the input sound signal by an attack gain; 상기 초기 어택 레벨이 최대 레벨 이상인 경우에 상기 초기 어택 레벨이 상기 최대 레벨 이하가 될 때까지 상기 어택 게인을 일정 레이트(rate)씩 감소시켜서 변경된 어택 레벨을 생성하는 신호 처리부; 및A signal processor configured to generate a modified attack level by decreasing the attack gain by a predetermined rate until the initial attack level becomes less than or equal to the maximum level when the initial attack level is greater than or equal to the maximum level; And 상기 초기 어택 레벨이 상기 최대 레벨 이하인 경우에 상기 어택 게인을 조절하여 상기 입력부로 출력하는 어택 게인 조절부An attack gain adjusting unit for adjusting the attack gain and outputting the attack gain when the initial attack level is less than or equal to the maximum level; 를 포함하는 것을 특징으로 하는 사운드 레벨 조절 장치.Sound level control device comprising a. 제16항에 있어서,The method of claim 16, 상기 초기 어택 레벨 또는 상기 변경된 어택 레벨 중에서 어느 하나를 기준 게인으로 나눈 출력 신호를 생성하는 출력부An output unit configured to generate an output signal obtained by dividing one of the initial attack level and the changed attack level by a reference gain 를 더 포함하는 것을 특징으로 하는 사운드 레벨 조절 장치.Sound level control device further comprises. 제16항에 있어서, 상기 어택 게인 조절부는,The method of claim 16, wherein the attack gain control unit, 상기 초기 어택 레벨이 상기 최대 레벨 보다 작고 상위 임계 레벨보다 큰 경우에, 상기 어택 게인이 상기 기준 게인 보다 크면 상기 어택 게인을 상기 기준 게인으로 설정하고, 그렇지 않으면 상기 어택 게인을 일정 레이트로 감소시키는 것을 특징으로 하는 사운드 레벨 조절 장치.If the initial attack level is less than the maximum level and greater than the upper threshold level, setting the attack gain to the reference gain if the attack gain is greater than the reference gain, otherwise reducing the attack gain to a constant rate. Sound level control device characterized in that. 제16항에 있어서, 상기 어택 게인 조절부는,The method of claim 16, wherein the attack gain control unit, 상기 초기 어택 레벨이 상기 최대 레벨 보다 작고 하위 임계 레벨 보다 작은 경우에, 상기 어택 게인이 상기 기준 게인 보다 작으면 상기 어택 게인을 상기 기준 게인으로 설정하고, 그렇지 않으면 상기 어택 게인을 일정 레이트로 증가시키는 것을 특징으로 하는 사운드 레벨 조절 장치.If the initial attack level is less than the maximum level and less than the lower threshold level, setting the attack gain to the reference gain if the attack gain is less than the reference gain, otherwise increasing the attack gain at a constant rate. Sound level control device, characterized in that.
KR1020060068434A 2006-07-21 2006-07-21 Method and apparatus for generally-equal extent sound level KR100756007B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020060068434A KR100756007B1 (en) 2006-07-21 2006-07-21 Method and apparatus for generally-equal extent sound level

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020060068434A KR100756007B1 (en) 2006-07-21 2006-07-21 Method and apparatus for generally-equal extent sound level

Publications (1)

Publication Number Publication Date
KR100756007B1 true KR100756007B1 (en) 2007-09-06

Family

ID=38736679

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020060068434A KR100756007B1 (en) 2006-07-21 2006-07-21 Method and apparatus for generally-equal extent sound level

Country Status (1)

Country Link
KR (1) KR100756007B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220162529A (en) * 2021-06-01 2022-12-08 주식회사 웰랑 Apparatus and method for adaptively controlling dynamic range

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001324997A (en) 2000-02-16 2001-11-22 Touchtunes Music Corp Method to adjust digital sound recording volume
JP2004104692A (en) 2002-09-12 2004-04-02 Asahi Kasei Microsystems Kk Automatic gain controller, automatic gain control method, and automatic gain control program
KR20050082510A (en) * 2004-02-19 2005-08-24 에스케이텔레텍주식회사 Method for outputting voice in mobile phone
KR20050090283A (en) * 2004-03-08 2005-09-13 엘지전자 주식회사 Method for adjusting gain of down-loaded music file
KR20060009209A (en) * 2004-07-24 2006-01-31 삼성전자주식회사 Apparatus and method for compensating audio volume automatically in response to the change of channel

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001324997A (en) 2000-02-16 2001-11-22 Touchtunes Music Corp Method to adjust digital sound recording volume
JP2004104692A (en) 2002-09-12 2004-04-02 Asahi Kasei Microsystems Kk Automatic gain controller, automatic gain control method, and automatic gain control program
KR20050082510A (en) * 2004-02-19 2005-08-24 에스케이텔레텍주식회사 Method for outputting voice in mobile phone
KR20050090283A (en) * 2004-03-08 2005-09-13 엘지전자 주식회사 Method for adjusting gain of down-loaded music file
KR20060009209A (en) * 2004-07-24 2006-01-31 삼성전자주식회사 Apparatus and method for compensating audio volume automatically in response to the change of channel

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220162529A (en) * 2021-06-01 2022-12-08 주식회사 웰랑 Apparatus and method for adaptively controlling dynamic range
KR102648885B1 (en) * 2021-06-01 2024-03-19 주식회사 웰랑 Apparatus and method for adaptively controlling dynamic range

Similar Documents

Publication Publication Date Title
EP1796265B1 (en) Portable audio device providing automated control of audio volume parameters for hearing protection
US9294062B2 (en) Sound processing apparatus, method, and program
EP2992605B1 (en) Frequency band compression with dynamic thresholds
CN110650410B (en) Microphone automatic gain control method, device and storage medium
US20160344356A1 (en) Audio Compression System for Compressing an Audio Signal
EP2928076B1 (en) Level adjustment device and method
US6298139B1 (en) Apparatus and method for maintaining a constant speech envelope using variable coefficient automatic gain control
US7260209B2 (en) Methods and apparatus for improving voice quality in an environment with noise
JP2009244650A (en) Speech reproduction device
KR100756007B1 (en) Method and apparatus for generally-equal extent sound level
CN104023102B (en) A kind of adjustable noise-reduction method, device and mobile terminal
US9614486B1 (en) Adaptive gain control
EP3811514B1 (en) Audio enhancement in response to compression feedback
JP4661422B2 (en) Muting device, digital audio device
JP5106651B2 (en) Signal processing apparatus and signal processing method
JP2010085933A (en) Sound field support apparatus, sound field support method and program
KR20070084312A (en) Adaptive time-based noise suppression
US9900689B2 (en) Adaptive detector and auto mode for dynamics processor
JP2004104692A (en) Automatic gain controller, automatic gain control method, and automatic gain control program
JP6228100B2 (en) Loudness adjustment device, loudness adjustment method, and loudness adjustment program
JPH07221574A (en) Digital tone controller
EP3940954B1 (en) Systems and methods for limiter functions
KR102229033B1 (en) Space-aware dynamic range control system with priority
US12028690B2 (en) Concept for modifying a loudspeaker signal for preventing diaphragm over-deflection
US11496099B2 (en) Systems and methods for limiter functions

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20120710

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20130731

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20140728

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20150729

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20160801

Year of fee payment: 10