KR20240020087A - Electronic device for performing active noise cancellation and method for thereof - Google Patents

Electronic device for performing active noise cancellation and method for thereof Download PDF

Info

Publication number
KR20240020087A
KR20240020087A KR1020220098102A KR20220098102A KR20240020087A KR 20240020087 A KR20240020087 A KR 20240020087A KR 1020220098102 A KR1020220098102 A KR 1020220098102A KR 20220098102 A KR20220098102 A KR 20220098102A KR 20240020087 A KR20240020087 A KR 20240020087A
Authority
KR
South Korea
Prior art keywords
filter
electronic device
signal
weight
input signal
Prior art date
Application number
KR1020220098102A
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 KR1020220098102A priority Critical patent/KR20240020087A/en
Publication of KR20240020087A publication Critical patent/KR20240020087A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction of ambient noise
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/26Pre-filtering or post-filtering
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Processing of the speech or voice signal 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
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1058Manufacture or assembly
    • H04R1/1075Mountings of transducers in earphones or headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2460/00Details of hearing devices, i.e. of ear- or headphones covered by H04R1/10 or H04R5/033 but not provided for in any of their subgroups, or of hearing aids covered by H04R25/00 but not provided for in any of its subgroups
    • H04R2460/01Hearing devices using active noise cancellation

Abstract

일 실시예에 따르면, 능동형 노이즈 제거(active noise cancellation)를 수행하는 전자 장치는, 입력 신호를 감지하기 위한 제1 마이크로폰; 및 상기 마이크로폰에 연결된 적어도 하나의 프로세서를 포함한다. 상기 적어도 하나의 프로세서는, 상기 입력 신호에 포함되는 노이즈 신호, 및 상기 입력 신호가 필터링된 제1 필터링 신호의 연산 결과에 따라 제거되지 않은 노이즈 신호를 나타내는 오차 신호를 확인할 수 있다. 상기 적어도 하나의 프로세서는, 상기 입력 신호 및 상기 오차 신호에 기반하여 LMS(least mean square) 알고리즘을 이용하여 복수의 필터 가중치들을 결정할 수 있다. 상기 적어도 하나의 프로세서는, 상기 복수의 필터 가중치들에 기반하여 머신 러닝(machine learning)을 이용하여 필터에 적용될 필터 가중치를 예측할 수 있다. According to one embodiment, an electronic device that performs active noise cancellation includes: a first microphone for detecting an input signal; and at least one processor coupled to the microphone. The at least one processor may check a noise signal included in the input signal and an error signal representing a noise signal that has not been removed according to an operation result of a first filtering signal from which the input signal has been filtered. The at least one processor may determine a plurality of filter weights using a least mean square (LMS) algorithm based on the input signal and the error signal. The at least one processor may predict a filter weight to be applied to a filter using machine learning based on the plurality of filter weights.

Description

능동형 노이즈 제거를 수행하는 전자 장치 및 그 동작 방법{ELECTRONIC DEVICE FOR PERFORMING ACTIVE NOISE CANCELLATION AND METHOD FOR THEREOF}Electronic device performing active noise cancellation and method of operation thereof {ELECTRONIC DEVICE FOR PERFORMING ACTIVE NOISE CANCELLATION AND METHOD FOR THEREOF}

본 개시의 일 실시예는 피드-포워드(feed-forward) 능동형 노이즈 제거를 수행하기 위한 전자 장치 및 이의 동작 방법에 관한 것이다. One embodiment of the present disclosure relates to an electronic device and a method of operating the same for performing feed-forward active noise removal.

무선 오디오 장치는 휴대폰과 같은 전자 장치와 무선으로 연결되어, 휴대폰으로부터 수신되는 오디오 데이터를 출력할 수 있다. 무선 오디오 장치는 전자 장치와 무선으로 연결(예: 블루투스 연결)되기 때문에 사용자의 편의성이 증대될 수 있다. A wireless audio device can be wirelessly connected to an electronic device such as a mobile phone and output audio data received from the mobile phone. Wireless audio devices can increase user convenience because they are wirelessly connected to electronic devices (e.g., Bluetooth connection).

무선 오디오 장치 내 노이즈를 제거하기 위해 능동형 노이즈 제거(active noise cancellation, ANC) 방법이 수행될 수 있다. ANC는 첫 번째 신호를 제거하도록 설계된 두 번째 신호를 추가하여 사용자가 원치 않는 소리를 줄이는 방법이다. An active noise cancellation (ANC) method may be performed to remove noise within a wireless audio device. ANC is a way for users to reduce unwanted sounds by adding a second signal designed to eliminate the first signal.

최근 무선 오디오 장치의 사용이 크게 증가하고 있으며, 능동형 노이즈 제거 방법을 향상시키는 기술에 대한 필요성이 대두되고 있다. Recently, the use of wireless audio devices has increased significantly, and there is a need for technologies to improve active noise cancellation methods.

일 실시예에 따르면, 과제의 해결 수단이 상술한 해결 수단들로 제한되는 것은 아니며, 언급되지 아니한 해결 수단들은 본 명세서 및 첨부된 도면으로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.According to one embodiment, the means for solving the problem are not limited to the above-mentioned solution means, and solution means not mentioned are clear to those skilled in the art from the present specification and the attached drawings. It will be understandable.

일 실시예에 따르면, 능동형 노이즈 제거(active noise cancellation)를 수행하는 전자 장치는, 입력 신호를 감지하기 위한 제1 마이크로폰; 및 상기 제1 마이크로폰에 연결된 적어도 하나의 프로세서를 포함한다. 상기 적어도 하나의 프로세서는, 상기 입력 신호에 포함되는 노이즈 신호, 및 상기 입력 신호가 필터링된 제1 필터링 신호의 연산 결과에 따라 제거되지 않은 노이즈 신호를 나타내는 오차 신호를 확인할 수 있다. 상기 적어도 하나의 프로세서는, 상기 입력 신호 및 상기 오차 신호에 기반하여 LMS(least mean square) 알고리즘을 이용하여 복수의 필터 가중치들을 결정할 수 있다. 상기 적어도 하나의 프로세서는, 상기 복수의 필터 가중치들에 기반하여 머신 러닝(machine learning)을 이용하여 필터에 적용될 필터 가중치를 예측할 수 있다. According to one embodiment, an electronic device that performs active noise cancellation includes: a first microphone for detecting an input signal; and at least one processor connected to the first microphone. The at least one processor may check a noise signal included in the input signal and an error signal representing a noise signal that has not been removed according to an operation result of a first filtering signal from which the input signal has been filtered. The at least one processor may determine a plurality of filter weights using a least mean square (LMS) algorithm based on the input signal and the error signal. The at least one processor may predict a filter weight to be applied to a filter using machine learning based on the plurality of filter weights.

일 실시예에 따르면, 능동형 노이즈 제거를 수행하는 전자 장치의 동작 방법은, 입력 신호를 감지하는 단계를 포함할 수 있다. 상기 전자 장치의 동작 방법은, 상기 입력 신호에 포함되는 노이즈 신호, 및 상기 입력 신호가 필터링된 제1 필터링 신호의 연산 결과에 따라 제거되지 않은 노이즈 신호를 나타내는 오차 신호를 확인하는 단계를 포함할 수 있다. 상기 전자 장치의 동작 방법은, 상기 입력 신호 및 상기 오차 신호에 기반하여 LMS(least mean square) 알고리즘을 이용하여 복수의 필터 가중치들을 결정하는 단계를 포함할 수 있다. 상기 전자 장치의 동작 방법은, 상기 복수의 필터 가중치들에 기반하여 머신 러닝(machine learning)을 이용하여 필터에 적용될 필터 가중치를 예측하는 단계를 포함할 수 있다. According to one embodiment, a method of operating an electronic device that performs active noise removal may include detecting an input signal. The method of operating the electronic device may include checking a noise signal included in the input signal and an error signal representing a noise signal that has not been removed according to an operation result of a first filtering signal from which the input signal has been filtered. there is. The method of operating the electronic device may include determining a plurality of filter weights using a least mean square (LMS) algorithm based on the input signal and the error signal. The method of operating the electronic device may include predicting a filter weight to be applied to a filter using machine learning based on the plurality of filter weights.

일 실시예에 따르면, 컴퓨터로 판독 가능한 기록 매체 내에 능동형 노이즈 제거 방법을 수행하는 명령어들(instructions)을 포함하는 적어도 하나의 컴퓨터 프로그램이 기록될 수 있다. 상기 능동형 노이즈 제거 방법은, 입력 신호를 감지하는 단계를 포함할 수 있다. 상기 능동형 노이즈 제거 방법은, 상기 입력 신호에 포함되는 노이즈 신호, 및 상기 입력 신호가 필터링된 제1 필터링 신호의 연산 결과에 따라 제거되지 않은 노이즈 신호를 나타내는 오차 신호를 확인하는 단계를 포함할 수 있다. 상기 능동형 노이즈 제거 방법은, 상기 입력 신호 및 상기 오차 신호에 기반하여 LMS(least mean square) 알고리즘을 이용하여 복수의 필터 가중치들을 결정하는 단계를 포함할 수 있다. 상기 능동형 노이즈 제거 방법은, 상기 복수의 필터 가중치들에 기반하여 머신 러닝(machine learning)을 이용하여 필터에 적용될 필터 가중치를 예측하는 단계를 포함할 수 있다. According to one embodiment, at least one computer program including instructions for performing an active noise removal method may be recorded in a computer-readable recording medium. The active noise removal method may include detecting an input signal. The active noise removal method may include the step of checking a noise signal included in the input signal and an error signal representing a noise signal that has not been removed according to an operation result of a first filtering signal from which the input signal is filtered. . The active noise removal method may include determining a plurality of filter weights using a least mean square (LMS) algorithm based on the input signal and the error signal. The active noise removal method may include predicting a filter weight to be applied to a filter using machine learning based on the plurality of filter weights.

도 1은 일 실시예에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2은 일 실시예에 따른 오디오 모듈의 블록도이다.
도 3은 일 실시예에 따른 전자 장치들 간 통신의 예시를 나타낸다.
도 4는 일 실시예에 따른 전자 장치에서 노이즈를 제거하는 과정을 설명하는 도면이다.
도 5 및 도 6은 일 실시예에 따른 전자 장치가 FxLMS를 이용하여 노이즈를 제거하는 과정을 설명하는 도면이다.
도 7은 일 실시예에 따른 전자 장치에 적용되는 필터 가중치를 예측하는 과정을 설명하는 도면이다.
도 8은 일 실시예에 따른 가중치 예측 모듈을 포함하는 전자 장치를 나타내는 도면이다.
도 9는 일 실시예에 따른 가중치 변경 예측 모듈을 포함하는 전자 장치를 나타내는 도면이다.
도 10은 일 실시예에 따른 전자 장치의 동작을 설명하는 도면이다.
도 11a 및 도 11b는 일 실시예에 따른 전자 장치의 동작에 따른 효과를 나타내는 도면이다.
도 12는 일 실시예에 따른 전자 장치의 동작 방법을 설명하기 위한 순서도이다.
1 is a block diagram of an electronic device in a network environment according to one embodiment.
Figure 2 is a block diagram of an audio module according to one embodiment.
Figure 3 shows an example of communication between electronic devices according to an embodiment.
FIG. 4 is a diagram illustrating a process for removing noise from an electronic device according to an embodiment.
Figures 5 and 6 are diagrams illustrating a process in which an electronic device removes noise using FxLMS, according to an embodiment.
FIG. 7 is a diagram illustrating a process for predicting filter weights applied to an electronic device according to an embodiment.
FIG. 8 is a diagram illustrating an electronic device including a weight prediction module according to an embodiment.
FIG. 9 is a diagram illustrating an electronic device including a weight change prediction module according to an embodiment.
FIG. 10 is a diagram explaining the operation of an electronic device according to an embodiment.
FIGS. 11A and 11B are diagrams showing effects resulting from the operation of an electronic device according to an embodiment.
FIG. 12 is a flowchart explaining a method of operating an electronic device according to an embodiment.

이하, 본 개시의 실시예가 첨부된 도면을 참조하여 기재된다. 그러나, 이는 본 개시를 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 개시의 실시 예의 다양한 변경(modification), 균등물(equivalent), 및/또는 대체물(alternative)을 포함하는 것으로 이해되어야 한다.Hereinafter, embodiments of the present disclosure are described with reference to the attached drawings. However, this is not intended to limit the present disclosure to specific embodiments, and should be understood to include various modifications, equivalents, and/or alternatives to the embodiments of the present disclosure.

도 1은 일 실시예에 따른 네트워크 환경 내의 전자 장치의 블록도이다. 1 is a block diagram of an electronic device in a network environment according to one embodiment.

도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.Referring to FIG. 1, in the network environment 100, the electronic device 101 communicates with the electronic device 102 through a first network 198 (e.g., a short-range wireless communication network) or a second network 199. It is possible to communicate with at least one of the electronic device 104 or the server 108 through (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108. According to one embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or may include an antenna module 197. In some embodiments, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added to the electronic device 101. In some embodiments, some of these components (e.g., sensor module 176, camera module 180, or antenna module 197) are integrated into one component (e.g., display module 160). It can be.

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (e.g., program 140) to operate at least one other component (e.g., hardware or software component) of the electronic device 101 connected to the processor 120. It can be controlled and various data processing or calculations can be performed. According to one embodiment, as at least part of data processing or computation, the processor 120 stores commands or data received from another component (e.g., sensor module 176 or communication module 190) in volatile memory 132. The commands or data stored in the volatile memory 132 can be processed, and the resulting data can be stored in the non-volatile memory 134. According to one embodiment, the processor 120 includes a main processor 121 (e.g., a central processing unit or an application processor) or an auxiliary processor 123 that can operate independently or together (e.g., a graphics processing unit, a neural network processing unit ( It may include a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, if the electronic device 101 includes a main processor 121 and a secondary processor 123, the secondary processor 123 may be set to use lower power than the main processor 121 or be specialized for a designated function. You can. The auxiliary processor 123 may be implemented separately from the main processor 121 or as part of it.

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The auxiliary processor 123 may, for example, act on behalf of the main processor 121 while the main processor 121 is in an inactive (e.g., sleep) state, or while the main processor 121 is in an active (e.g., application execution) state. ), together with the main processor 121, at least one of the components of the electronic device 101 (e.g., the display module 160, the sensor module 176, or the communication module 190) At least some of the functions or states related to can be controlled. According to one embodiment, co-processor 123 (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module 180 or communication module 190). there is. According to one embodiment, the auxiliary processor 123 (eg, neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. Artificial intelligence models can be created through machine learning. For example, such learning may be performed in the electronic device 101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (e.g., server 108). Learning algorithms may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but It is not limited. An artificial intelligence model may include multiple artificial neural network layers. Artificial neural networks include deep neural network (DNN), convolutional neural network (CNN), recurrent neural network (RNN), restricted boltzmann machine (RBM), belief deep network (DBN), bidirectional recurrent deep neural network (BRDNN), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the examples described above. In addition to hardware structures, artificial intelligence models may additionally or alternatively include software structures.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101. Data may include, for example, input data or output data for software (e.g., program 140) and instructions related thereto. Memory 130 may include volatile memory 132 or non-volatile memory 134.

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142, middleware 144, or application 146.

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 150 may receive commands or data to be used in a component of the electronic device 101 (e.g., the processor 120) from outside the electronic device 101 (e.g., a user). The input module 150 may include, for example, a microphone, mouse, keyboard, keys (eg, buttons), or digital pen (eg, stylus pen).

음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output sound signals to the outside of the electronic device 101. The sound output module 155 may include, for example, a speaker or a receiver. Speakers can be used for general purposes such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.

디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 can visually provide information to the outside of the electronic device 101 (eg, a user). The display module 160 may include, for example, a display, a hologram device, or a projector, and a control circuit for controlling the device. According to one embodiment, the display module 160 may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of force generated by the touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device (e.g., directly or wirelessly connected to the electronic device 101). Sound may be output through the electronic device 102 (e.g., speaker or headphone).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects the operating state (e.g., power or temperature) of the electronic device 101 or the external environmental state (e.g., user state) and generates an electrical signal or data value corresponding to the detected state. can do. According to one embodiment, the sensor module 176 includes, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, humidity sensor, or light sensor.

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that can be used to connect the electronic device 101 directly or wirelessly with an external electronic device (eg, the electronic device 102). According to one embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102). According to one embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 can convert electrical signals into mechanical stimulation (e.g., vibration or movement) or electrical stimulation that the user can perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 can capture still images and moving images. According to one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 can manage power supplied to the electronic device 101. According to one embodiment, the power management module 188 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101. According to one embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. Communication module 190 is configured to provide a direct (e.g., wired) communication channel or wireless communication channel between electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108). It can support establishment and communication through established communication channels. Communication module 190 operates independently of processor 120 (e.g., an application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., : LAN (local area network) communication module, or power line communication module) may be included. Among these communication modules, the corresponding communication module is a first network 198 (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (e.g., legacy It may communicate with an external electronic device 104 through a telecommunication network such as a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or WAN). These various types of communication modules may be integrated into one component (e.g., a single chip) or may be implemented as a plurality of separate components (e.g., multiple chips). The wireless communication module 192 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199. The electronic device 101 can be confirmed or authenticated.

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support 5G networks after 4G networks and next-generation communication technologies, for example, NR access technology (new radio access technology). NR access technology provides high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low latency). -latency communications)) can be supported. The wireless communication module 192 may support high frequency bands (eg, mmWave bands), for example, to achieve high data rates. The wireless communication module 192 uses various technologies to secure performance in high frequency bands, for example, beamforming, massive array multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. It can support technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module 192 may support various requirements specified in the electronic device 101, an external electronic device (e.g., electronic device 104), or a network system (e.g., second network 199). According to one embodiment, the wireless communication module 192 supports Peak data rate (e.g., 20 Gbps or more) for realizing eMBB, loss coverage (e.g., 164 dB or less) for realizing mmTC, or U-plane latency (e.g., 164 dB or less) for realizing URLLC. Example: Downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) can be supported.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The antenna module 197 may transmit or receive signals or power to or from the outside (eg, an external electronic device). According to one embodiment, the antenna module 197 may include an antenna including a radiator made of a conductor or a conductive pattern formed on a substrate (eg, PCB). According to one embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected to the plurality of antennas by, for example, the communication module 190. can be selected. Signals or power may be transmitted or received between the communication module 190 and an external electronic device through the at least one selected antenna. According to some embodiments, in addition to the radiator, other components (eg, radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module 197.

일 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to one embodiment, the antenna module 197 may form a mmWave antenna module. According to one embodiment, a mmWave antenna module includes: a printed circuit board, an RFIC disposed on or adjacent to a first side (e.g., bottom side) of the printed circuit board and capable of supporting a designated high frequency band (e.g., mmWave band); And a plurality of antennas (e.g., array antennas) disposed on or adjacent to the second side (e.g., top or side) of the printed circuit board and capable of transmitting or receiving signals in the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( (e.g. commands or data) can be exchanged with each other.

일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to one embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199. Each of the external electronic devices 102 or 104 may be of the same or different type as the electronic device 101. According to one embodiment, all or part of the operations performed in the electronic device 101 may be executed in one or more of the external electronic devices 102, 104, or 108. For example, when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 may perform the function or service instead of executing the function or service on its own. Alternatively, or additionally, one or more external electronic devices may be requested to perform at least part of the function or service. One or more external electronic devices that have received the request may execute at least part of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may process the result as is or additionally and provide it as at least part of a response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology can be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an Internet of Things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199. The electronic device 101 may be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

본 개시의 일 실시예에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 무선 오디오 장치(예: 무선 이어폰, 이어버드, TWS(true wireless stereo), 또는 이어셋(earset)), 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.An electronic device according to an embodiment of the present disclosure may be of various types. Electronic devices include, for example, wireless audio devices (e.g., wireless earphones, earbuds, true wireless stereo (TWS), or earsets), portable communication devices (e.g., smartphones), computer devices, and portable multimedia devices. , may include portable medical devices, cameras, wearable devices, or home appliance devices. Electronic devices according to embodiments of this document are not limited to the above-described devices.

본 문서의 일 실시예 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.An embodiment of this document and the terms used herein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various changes, equivalents, or substitutes for the embodiment. In connection with the description of the drawings, similar reference numbers may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the above items, unless the relevant context clearly indicates otherwise. As used herein, “A or B”, “at least one of A and B”, “at least one of A or B”, “A, B or C”, “at least one of A, B and C”, and “A Each of phrases such as “at least one of , B, or C” may include any one of the items listed together in the corresponding phrase, or any possible combination thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish one component from another, and to refer to that component in other respects (e.g., importance or order) is not limited. One (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.” When mentioned, it means that any of the components can be connected to the other components directly (e.g. wired), wirelessly, or through a third component.

본 문서의 일 실시예에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in one embodiment of this document may include a unit implemented in hardware, software, or firmware, and may be interchangeable with terms such as logic, logic block, component, or circuit, for example. can be used A module may be an integrated part or a minimum unit of the parts or a part thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 일 실시예는 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.One embodiment of the present document is one or more instructions stored in a storage medium (e.g., built-in memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). It may be implemented as software (e.g., program 140) including these. For example, a processor (e.g., processor 120) of a device (e.g., electronic device 101) may call at least one command among one or more commands stored from a storage medium and execute it. This allows the device to be operated to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves), and this term refers to cases where data is semi-permanently stored in the storage medium. There is no distinction between temporary storage cases.

일 실시예에 따르면, 본 문서에 개시된 일 실시예에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, a method according to an embodiment disclosed in this document may be provided and included in a computer program product. Computer program products are commodities and can be traded between sellers and buyers. The computer program product may be distributed in the form of a machine-readable storage medium (e.g. compact disc read only memory (CD-ROM)) or via an application store (e.g. Play Store TM ) or on two user devices (e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online. In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

일 실시예에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 일 실시예에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 일 실시예에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다. According to one embodiment, each component (e.g., module or program) of the above-described components may include a single or multiple entities, and some of the multiple entities may be separately placed in other components. . According to one embodiment, one or more of the above-described corresponding components or operations may be omitted, or one or more other components or operations may be added. Alternatively or additionally, multiple components (eg, modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each component of the plurality of components in the same or similar manner as those performed by the corresponding component of the plurality of components prior to the integration. . According to one embodiment, operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or , or one or more other operations may be added.

도 2은 일 실시예에 따른 오디오 모듈의 블록도이다. Figure 2 is a block diagram of an audio module according to one embodiment.

도 2를 참조하면, 오디오 모듈(170)은, 예를 들면, 오디오 입력 인터페이스(210), 오디오 입력 믹서(220), ADC(analog to digital converter)(230), 오디오 신호 처리기(240), DAC(digital to analog converter)(250), 오디오 출력 믹서(260), 또는 오디오 출력 인터페이스(270)를 포함할 수 있다. Referring to FIG. 2, the audio module 170 includes, for example, an audio input interface 210, an audio input mixer 220, an analog to digital converter (ADC) 230, an audio signal processor 240, and a DAC. (digital to analog converter) 250, an audio output mixer 260, or an audio output interface 270.

오디오 입력 인터페이스(210)는 입력 모듈(150)의 일부로서 또는 전자 장치(101)와 별도로 구성된 마이크(예: 다이나믹 마이크, 콘덴서 마이크, 또는 피에조 마이크)를 통하여 전자 장치(101)의 외부로부터 획득한 소리에 대응하는 오디오 신호를 수신할 수 있다. 예를 들어, 오디오 신호가 외부의 전자 장치(102)(예: 헤드셋 또는 마이크)로부터 획득되는 경우, 오디오 입력 인터페이스(210)는 상기 외부의 전자 장치(102)와 연결 단자(178)를 통해 직접, 또는 무선 통신 모듈(192)을 통하여 무선으로(예: Bluetooth 통신) 연결되어 오디오 신호를 수신할 수 있다. 일 실시예에 따르면, 오디오 입력 인터페이스(210)는 상기 외부의 전자 장치(102)로부터 획득되는 오디오 신호와 관련된 제어 신호(예: 입력 버튼을 통해 수신된 볼륨 조정 신호)를 수신할 수 있다. 오디오 입력 인터페이스(210)는 복수의 오디오 입력 채널들을 포함하고, 상기 복수의 오디오 입력 채널들 중 대응하는 오디오 입력 채널 별로 다른 오디오 신호를 수신할 수 있다. 일 실시예에 따르면, 추가적으로 또는 대체적으로, 오디오 입력 인터페이스(210)는 전자 장치(101)의 다른 구성 요소(예: 프로세서(120) 또는 메모리(130))로부터 오디오 신호를 입력 받을 수 있다.The audio input interface 210 is a part of the input module 150 or is configured separately from the electronic device 101 to obtain audio from the outside of the electronic device 101 through a microphone (e.g., dynamic microphone, condenser microphone, or piezo microphone). An audio signal corresponding to sound can be received. For example, when an audio signal is acquired from an external electronic device 102 (e.g., a headset or microphone), the audio input interface 210 is directly connected to the external electronic device 102 through the connection terminal 178. , or the audio signal can be received by connecting wirelessly (e.g., Bluetooth communication) through the wireless communication module 192. According to one embodiment, the audio input interface 210 may receive a control signal (eg, a volume adjustment signal received through an input button) related to the audio signal obtained from the external electronic device 102. The audio input interface 210 includes a plurality of audio input channels and can receive different audio signals for each corresponding audio input channel among the plurality of audio input channels. According to one embodiment, additionally or alternatively, the audio input interface 210 may receive an audio signal from another component of the electronic device 101 (eg, the processor 120 or the memory 130).

오디오 입력 믹서(220)는 입력된 복수의 오디오 신호들을 적어도 하나의 오디오 신호로 합성할 수 있다. 예를 들어, 일 실시예에 따르면, 오디오 입력 믹서(220)는, 오디오 입력 인터페이스(210)를 통해 입력된 복수의 아날로그 오디오 신호들을 적어도 하나의 아날로그 오디오 신호로 합성할 수 있다.The audio input mixer 220 may synthesize a plurality of input audio signals into at least one audio signal. For example, according to one embodiment, the audio input mixer 220 may synthesize a plurality of analog audio signals input through the audio input interface 210 into at least one analog audio signal.

ADC(230)는 아날로그 오디오 신호를 디지털 오디오 신호로 변환할 수 있다. 예를 들어, 일 실시예에 따르면, ADC(230)는 오디오 입력 인터페이스(210)을 통해 수신된 아날로그 오디오 신호, 또는 추가적으로 또는 대체적으로 오디오 입력 믹서(220)를 통해 합성된 아날로그 오디오 신호를 디지털 오디오 신호로 변환할 수 있다.The ADC 230 can convert analog audio signals into digital audio signals. For example, according to one embodiment, the ADC 230 converts the analog audio signal received through the audio input interface 210, or additionally or alternatively, the analog audio signal synthesized through the audio input mixer 220 into a digital audio signal. It can be converted into a signal.

오디오 신호 처리기(240)는 ADC(230)를 통해 입력 받은 디지털 오디오 신호, 또는 전자 장치(101)의 다른 구성 요소로부터 수신된 디지털 오디오 신호에 대하여 다양한 처리를 수행할 수 있다. 예를 들어, 일 실시예에 따르면, 오디오 신호 처리기(240)는 하나 이상의 디지털 오디오 신호들에 대해 샘플링 비율 변경, 하나 이상의 필터 적용, 보간(interpolation) 처리, 전체 또는 일부 주파수 대역의 증폭 또는 감쇄, 노이즈 처리(예: 노이즈 또는 에코 감쇄), 채널 변경(예: 모노 및 스테레오간 전환), 합성(mixing), 또는 지정된 신호 추출을 수행할 수 있다. 일 실시예에 따르면, 오디오 신호 처리기(240)의 하나 이상의 기능들은 이퀄라이저(equalizer)의 형태로 구현될 수 있다.The audio signal processor 240 may perform various processing on a digital audio signal input through the ADC 230 or a digital audio signal received from another component of the electronic device 101. For example, according to one embodiment, the audio signal processor 240 may change the sampling rate, apply one or more filters, process interpolation, amplify or attenuate all or part of the frequency band, and You can perform noise processing (e.g., noise or echo attenuation), change channels (e.g., switch between mono and stereo), mix, or extract specified signals. According to one embodiment, one or more functions of the audio signal processor 240 may be implemented in the form of an equalizer.

DAC(250)는 디지털 오디오 신호를 아날로그 오디오 신호로 변환할 수 있다. 예를 들어, 일 실시예에 따르면, DAC(250)는 오디오 신호 처리기(240)에 의해 처리된 디지털 오디오 신호, 또는 전자 장치(101)의 다른 구성 요소(예: 프로세서(120) 또는 메모리(130))로부터 획득한 디지털 오디오 신호를 아날로그 오디오 신호로 변환할 수 있다.The DAC 250 can convert digital audio signals into analog audio signals. For example, according to one embodiment, DAC 250 may process digital audio signals processed by audio signal processor 240, or other components of electronic device 101 (e.g., processor 120 or memory 130). The digital audio signal obtained from )) can be converted to an analog audio signal.

오디오 출력 믹서(260)는 출력할 복수의 오디오 신호들을 적어도 하나의 오디오 신호로 합성할 수 있다. 예를 들어, 일 실시예에 따르면, 오디오 출력 믹서(260)는 DAC(250)를 통해 아날로그로 전환된 오디오 신호 및 다른 아날로그 오디오 신호(예: 오디오 입력 인터페이스(210)을 통해 수신한 아날로그 오디오 신호)를 적어도 하나의 아날로그 오디오 신호로 합성할 수 있다. The audio output mixer 260 may synthesize a plurality of audio signals to be output into at least one audio signal. For example, according to one embodiment, the audio output mixer 260 may output an audio signal converted to analog through the DAC 250 and another analog audio signal (e.g., an analog audio signal received through the audio input interface 210). ) can be synthesized into at least one analog audio signal.

오디오 출력 인터페이스(270)는 DAC(250)를 통해 변환된 아날로그 오디오 신호, 또는 추가적으로 또는 대체적으로 오디오 출력 믹서(260)에 의해 합성된 아날로그 오디오 신호를 음향 출력 모듈(155) 를 통해 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)는, 예를 들어, dynamic driver 또는 balanced armature driver 같은 스피커, 또는 리시버를 포함할 수 있다. 일실시예에 따르면, 음향 출력 모듈(155)는 복수의 스피커들을 포함할 수 있다. 이런 경우, 오디오 출력 인터페이스(270)는 상기 복수의 스피커들 중 적어도 일부 스피커들을 통하여 서로 다른 복수의 채널들(예: 스테레오, 또는 5.1채널)을 갖는 오디오 신호를 출력할 수 있다. 일 실시예에 따르면, 오디오 출력 인터페이스(270)는 외부의 전자 장치(102)(예: 외부 스피커 또는 헤드셋)와 연결 단자(178)를 통해 직접, 또는 무선 통신 모듈(192)을 통하여 무선으로 연결되어 오디오 신호를 출력할 수 있다. The audio output interface 270 transmits the analog audio signal converted through the DAC 250, or additionally or alternatively, the analog audio signal synthesized by the audio output mixer 260 to the electronic device 101 through the audio output module 155. ) can be output outside of. The sound output module 155 may include, for example, a speaker such as a dynamic driver or balanced armature driver, or a receiver. According to one embodiment, the sound output module 155 may include a plurality of speakers. In this case, the audio output interface 270 may output audio signals having a plurality of different channels (eg, stereo or 5.1 channels) through at least some of the speakers. According to one embodiment, the audio output interface 270 is connected to the external electronic device 102 (e.g., external speaker or headset) directly through the connection terminal 178 or wirelessly through the wireless communication module 192. and can output audio signals.

일 실시예에 따르면, 오디오 모듈(170)은 오디오 입력 믹서(220) 또는 오디오 출력 믹서(260)를 별도로 구비하지 않고, 오디오 신호 처리기(240)의 적어도 하나의 기능을 이용하여 복수의 디지털 오디오 신호들을 합성하여 적어도 하나의 디지털 오디오 신호를 생성할 수 있다.According to one embodiment, the audio module 170 does not have a separate audio input mixer 220 or an audio output mixer 260, but uses at least one function of the audio signal processor 240 to generate a plurality of digital audio signals. At least one digital audio signal can be generated by synthesizing them.

일 실시예에 따르면, 오디오 모듈(170)은 오디오 입력 인터페이스(210)를 통해 입력된 아날로그 오디오 신호, 또는 오디오 출력 인터페이스(270)를 통해 출력될 오디오 신호를 증폭할 수 있는 오디오 증폭기(미도시)(예: 스피커 증폭 회로)를 포함할 수 있다. 일 실시예에 따르면, 상기 오디오 증폭기는 오디오 모듈(170)과 별도의 모듈로 구성될 수 있다.According to one embodiment, the audio module 170 is an audio amplifier (not shown) capable of amplifying an analog audio signal input through the audio input interface 210 or an audio signal to be output through the audio output interface 270. (e.g., speaker amplification circuit) may be included. According to one embodiment, the audio amplifier may be composed of a module separate from the audio module 170.

도 3은 일 실시예에 따른 전자 장치들 간 통신의 예시를 나타낸다. Figure 3 shows an example of communication between electronic devices according to an embodiment.

도 3를 참조하면, 제1 전자 장치(301) 및 제2 전자 장치(302)(예: 제1 무선 오디오 장치(302-1) 및/또는 제2 무선 오디오 장치(302-2))는 도 1 또는 도 2에 도시된 전자 장치와 적어도 일부가 동일하거나 유사한 구성요소를 포함하고, 적어도 일부가 동일하거나 유사한 기능을 수행할 수 있다. Referring to FIG. 3, the first electronic device 301 and the second electronic device 302 (e.g., the first wireless audio device 302-1 and/or the second wireless audio device 302-2) are shown in FIG. At least some of the electronic devices shown in FIG. 1 or FIG. 2 may include the same or similar components, and at least some of them may perform the same or similar functions.

제1 전자 장치(301)는 예를 들어, 스마트폰, 태블릿, 데스크탑 컴퓨터, 또는 랩탑 컴퓨터와 같은 사용자 단말을 포함할 수 있다. 제2 전자 장치(302)는 무선 이어폰, 헤드셋, 이어 버드, TWS(true wireless stereo), 또는 이어셋(earset)을 포함할 수 있으나, 이에 한정되는 것은 아니다. 제2 전자 장치(302)는 오디오 신호를 수신하고, 수신된 오디오 신호를 출력하는 다양한 형태의 장치(예: 보청기, 또는 휴대용 음향기기)를 포함할 수 있다. The first electronic device 301 may include a user terminal, such as a smartphone, tablet, desktop computer, or laptop computer. The second electronic device 302 may include, but is not limited to, wireless earphones, a headset, earbuds, true wireless stereo (TWS), or an earset. The second electronic device 302 may include various types of devices (eg, hearing aids or portable audio devices) that receive audio signals and output the received audio signals.

예를 들어, 제1 전자 장치(301)와 제2 전자 장치(302)는 블루투스 네트워크에 따라 근거리에서 무선 통신을 수행할 수 있다. 블루투스 네트워크는 예를 들어, 블루투스 레거시(legacy) 네트워크 또는 BLE 네트워크를 포함할 수 있다. 일 실시 예에 따라, 제1 전자 장치(301)와 제2 전자 장치(302)는 블루투스 레거시 네트워크 또는 BLE 네트워크 중 하나의 네트워크를 통해 무선 통신을 수행하거나, 두 개의 네트워크를 통해 무선 통신을 수행할 수 있다.For example, the first electronic device 301 and the second electronic device 302 may perform wireless communication in a short distance according to a Bluetooth network. The Bluetooth network may include, for example, a Bluetooth legacy network or a BLE network. According to one embodiment, the first electronic device 301 and the second electronic device 302 may perform wireless communication through one of a Bluetooth legacy network or a BLE network, or may perform wireless communication through two networks. You can.

예를 들어, 제1 전자 장치(301)에서 음악이 재생되면, 제1 전자 장치(301)가 제2 전자 장치(302)와 생성된 링크(예: 제1 링크(305) 및/또는 제2 링크(310))를 통하여 콘텐츠(예: 음악 데이터)를 포함하는 데이터 패킷을 전송할 수 있다. 예를 들어, 제2 전자 장치(302) 중 적어도 하나는 생성된 링크를 통하여 콘텐츠(예: 오디오 데이터)를 포함하는 데이터 패킷을 제1 전자 장치(301)로 전송할 수 있다. 예를 들어, 제1 무선 오디오 장치(302-1)와 제2 무선 오디오 장치(302-2)는 설정된 링크(예: 제3 링크(315))를 통하여 데이터 패킷 또는 메시지를 송수신할 수 있다. For example, when music is played on the first electronic device 301, the first electronic device 301 connects to the second electronic device 302 and the created link (e.g., the first link 305 and/or the second A data packet including content (e.g., music data) may be transmitted through link 310). For example, at least one of the second electronic devices 302 may transmit a data packet including content (eg, audio data) to the first electronic device 301 through the created link. For example, the first wireless audio device 302-1 and the second wireless audio device 302-2 may transmit and receive data packets or messages through an established link (eg, third link 315).

도 4는 일 실시예에 따른 전자 장치에서 노이즈를 제거하는 과정을 설명하는 도면이다. FIG. 4 is a diagram illustrating a process for removing noise from an electronic device according to an embodiment.

도 4를 참조하면, 전자 장치는 무선 이어폰, 헤드셋, 이어 버드, TWS(true wireless stereo), 또는 이어셋(earset)으로 구현될 수 있다. 일 실시예에 따라, 전자 장치는 도 1 내지 도 3에 도시된 전자 장치 각각과 적어도 일부가 동일하거나 유사한 구성요소를 포함하고, 적어도 일부가 동일하거나 유사한 기능을 수행할 수 있다.Referring to FIG. 4, the electronic device may be implemented as a wireless earphone, headset, earbud, true wireless stereo (TWS), or earset. According to one embodiment, the electronic device may include components that are at least partially the same as or similar to each of the electronic devices shown in FIGS. 1 to 3 , and at least partially may perform the same or similar functions.

410 단계에서, 전자 장치는 마이크로폰(microphone)을 통해 입력되는 주변 소리(incoming ambient sound)를 감지할 수 있다. 420 단계에서, 감지된 주변 소리는 전자 장치 내 노이즈 제거 회로(noise cancellation circuitry)로 전송될 수 있다. In step 410, the electronic device may detect an incoming ambient sound input through a microphone. In step 420, the detected ambient sound may be transmitted to a noise cancellation circuitry within the electronic device.

430 단계에서, 전자 장치 내 노이즈 제거 회로(noise cancellation circuitry)는 주변 소리에 상응하는 파동(wave)을 반전시키고, 반전된 파동을 전자 장치 내 스피커(speaker)로 전송할 수 있다. In step 430, a noise cancellation circuitry in the electronic device may invert a wave corresponding to the surrounding sound and transmit the inverted wave to a speaker in the electronic device.

440 단계에서, 전자 장치는 노이즈 제거 회로에서 제공하는 반전된 파동을 이용하여 주변 소리를 제거하여 능동형 노이즈 제거(active noise cancellation, ANC) 동작을 수행할 수 있다. In step 440, the electronic device may perform an active noise cancellation (ANC) operation by removing surrounding sounds using inverted waves provided by the noise removal circuit.

일 실시예에 따라, ANC를 위해 신호 필터링이 요구되며, 완전한 감쇠를 제공하는 필터는 물리적 제한으로 인해 존재하지 않을 수 있다. 또한, SoTA 적응형 필터(SoTA adaptive filter) 알고리즘은 최적의 고정된 가중치 필터의 성능을 달성할 만큼 충분히 빠르게 수렴하지 않을 수 있다.According to one embodiment, signal filtering is required for ANC, and a filter that provides complete attenuation may not exist due to physical limitations. Additionally, the SoTA adaptive filter algorithm may not converge quickly enough to achieve optimal fixed weight filter performance.

본 개시는 경사 하강법(gradient descent method)에 의존하는 기술에 비해 더 빠르고 더 나은 필터 적응을 제안하며, FxLMS(filtered reference least mean squares) 알고리즘의 약점을 극복하고, ANC의 효율성을 향상시킬 수 있다.This disclosure proposes faster and better filter adaptation compared to techniques relying on the gradient descent method, overcomes the weaknesses of the filtered reference least mean squares (FxLMS) algorithm, and can improve the efficiency of ANC. .

도 5 및 도 6은 일 실시예에 따른 전자 장치가 FxLMS를 이용하여 노이즈를 제거하는 과정을 설명하는 도면이다. 도 5 및 도 6에서 피드-포워드 능동형 노이즈 제어 시스템(feed-forward active noise control system)을 포함하는 전자 장치는 도 1 내지 도 4에 도시된 전자 장치 각각과 적어도 일부가 동일하거나 유사한 구성요소를 포함하고, 적어도 일부가 동일하거나 유사한 기능을 수행할 수 있다.Figures 5 and 6 are diagrams illustrating a process in which an electronic device removes noise using FxLMS, according to an embodiment. The electronic device including a feed-forward active noise control system in FIGS. 5 and 6 includes components that are at least partially the same or similar to each of the electronic devices shown in FIGS. 1 to 4. And at least some of them may perform the same or similar functions.

ANC 기법은 DSP(digital signal processor)에서 FXLMS 알고리즘을 이용하여 소음원으로부터 발생된 소음신호를 적응 신호 처리(adaptive signal processing) 기법에 의해 검출하고, 이 소음을 저감하기 위한 역위상의 부가신호를 발생시켜 줌으로써 능동적으로 소음을 저감하는 원리를 이용할 수 있다.The ANC technique uses the FXLMS algorithm in a DSP (digital signal processor) to detect a noise signal generated from a noise source using an adaptive signal processing technique, and generates an additional signal of an anti-phase to reduce this noise. By doing so, the principle of actively reducing noise can be used.

도 5는 FxLMS 알고리즘을 사용하는 피드-포워드 능동형 노이즈 제어 시스템의 일 예시를 도시한다. 일 실시예에 따라, 피드-포워드 능동형 노이즈 제어 시스템에서 ANC 시스템은 전자 장치에 포함되는 프로세서(예: 디지털 신호 프로세서(DSP))로 구현될 수 있다. Figure 5 shows an example of a feed-forward active noise control system using the FxLMS algorithm. According to one embodiment, in a feed-forward active noise control system, the ANC system may be implemented with a processor (eg, digital signal processor (DSP)) included in an electronic device.

도 5를 참조하면, 피드-포워드 능동형 노이즈 제어 시스템은 1차 경로(P)(510), ANC 시스템(또는 ANC 필터)(520), 및 2차 경로(S)(530)를 포함할 수 있다. ANC 시스템(520)은 필터(F)(522), 추정된 2차 경로()(524), 및 LMS 모듈(526)을 포함할 수 있다. Referring to Figure 5, the feed-forward active noise control system may include a primary path (P) 510, an ANC system (or ANC filter) 520, and a secondary path (S) 530. . The ANC system 520 includes a filter (F) 522, an estimated secondary path ( ) 524, and an LMS module 526.

입력 신호(x)는 소음원에 의해 발생된 신호(또는 주변 신호)이며, 참조 신호로도 지칭될 수 있다. 입력 신호(x)는 전자 장치 내 적어도 하나의 센서에 의해 측정될 수 있다. The input signal (x) is a signal (or surrounding signal) generated by a noise source and may also be referred to as a reference signal. The input signal (x) may be measured by at least one sensor in the electronic device.

일 실시예에 따라, 입력 신호(x)는 1차 경로(P)(510), 필터(F)(522), 및 추정된 2차 경로()(524) 각각으로 제공될 수 있다. 입력 신호(x)는 1차 경로(P)(510)를 거쳐 노이즈 신호(d)로 변환될 수 있다. 필터(F)(522)는 입력 신호(x)를 필터링하여 필터링된 신호(y)를 출력할 수 있다. 일 실시예에 따라, 필터(F)(522)는 신호 경로 상에 부가적 180° 위상 편이를 부과할 수 있다. 입력 신호(x)는 추정된 2차 경로()(524)를 거쳐 수정된 입력 신호 (x')로 변환될 수 있다.According to one embodiment, the input signal (x) is divided into a primary path (P) 510, a filter (F) 522, and an estimated secondary path ( )(524) can be provided respectively. The input signal (x) may be converted into a noise signal (d) through the primary path (P) 510. The filter (F) 522 may filter the input signal (x) and output the filtered signal (y). According to one embodiment, filter (F) 522 may impose an additional 180° phase shift on the signal path. The input signal (x) is the estimated secondary path ( ) can be converted to a modified input signal (x') through 524.

일 실시예에 따라, n번째 단계(예를 들어, n번째 시간)에서 필터(F)(522)에 의해 필터링된 신호(y)는 수학식 1과 같이 표현될 수 있다.According to one embodiment, the signal (y) filtered by the filter (F) 522 at the nth stage (eg, nth time) may be expressed as Equation 1.

[수학식 1][Equation 1]

여기서, x(n)은 n번째 단계에서의 입력 신호(x)이고, f(n)은 n번째 단계에서 필터에 적용되는 가중치(또는 가중치 함수)일 수 있다. 일 실시예에 따라, LMS 모듈(526)은 f(n)을 생성(또는 계산)할 수 있다.Here, x(n) may be the input signal (x) in the nth step, and f(n) may be a weight (or weight function) applied to the filter in the nth step. According to one embodiment, LMS module 526 may generate (or calculate) f(n).

필터(F)(522)에 의해 필터링된 신호(y)는 2차 경로(S)(530)를 거쳐 수정된 필터링된 신호(y')로 변환될 수 있다. 수정된 필터링된 신호(y')는 1차 경로(P)(510)의 출력인 노이즈 신호(d)와 중첩될 수 있다. 수정된 필터링된 신호(y')와 노이즈 신호(d) 간 중첩의 결과로 오차 신호(e)가 생성될 수 있다. The signal (y) filtered by the filter (F) 522 may be converted into a modified filtered signal (y') through a secondary path (S) 530. The modified filtered signal (y') may overlap with the noise signal (d), which is the output of the primary path (P) 510. An error signal (e) may be generated as a result of overlap between the modified filtered signal (y') and the noise signal (d).

LMS 모듈(526)은 추정된 2차 경로()(524)를 거쳐 수정된 입력 신호 (x') 및 오차 신호(e)에 기반하여 필터(F)(522)에 사용될 최적의 가중치(또는 필터 계수)를 계산하기 위해 LMS(least mean square) 알고리즘을 사용할 수 있다. 일 실시예에 따라, LMS 모듈(526)은 가중치(또는 필터 계수)를 결정하고, 이를 필터(F)(522)로 제공할 수 있다. 일 실시예에 따라, LMS 모듈(526)은 필터(F)(522)를 위한 최적 필터 계수 세트를 계산할 수 있고, 필터(F)(522)는 최적 필터 계수 세트에 상응하는 필터 전달 함수 W(z)를 갖을 수 있다. The LMS module 526 determines the estimated secondary path ( ) (524) to calculate the optimal weight (or filter coefficient) to be used in the filter (F) (522) based on the corrected input signal (x') and error signal (e) (least mean square (LMS)) Algorithms can be used. According to one embodiment, the LMS module 526 may determine a weight (or filter coefficient) and provide it to the filter (F) 522. According to one embodiment, the LMS module 526 may calculate an optimal set of filter coefficients for the filter (F) 522, and the filter (F) 522 may calculate a filter transfer function W ( z).

일 실시예에 따라, LMS 모듈(526)은 각 단계에서 LMS 알고리즘을 이용하여 수학식 2와 같이 필터(F)(522)에 대한 가중치(또는 가중치 함수)를 업데이트할 수 있다.According to one embodiment, the LMS module 526 may update the weight (or weight function) for the filter (F) 522 as shown in Equation 2 using the LMS algorithm at each step.

[수학식 2][Equation 2]

여기서, 는 미리 설정된 계수이고, f(n)은 n번째 단계에서의 가중치(또는 가중치 함수)이고, x'(n)은 n번째 단계에서의 수정된 입력 신호 (x')이고, f(n+1)은 n+1번째 단계에서의 가중치(또는 가중치 함수)일 수 있다.here, is a preset coefficient, f(n) is the weight (or weight function) at the nth step, x'(n) is the modified input signal (x') at the nth step, and f(n+1 ) may be the weight (or weight function) at the n+1th step.

일 실시예에 따라, ANC 시스템(520)은 적어도 2 개의 스피커(예: noise speaker, cancelling speaker), 적어도 2개의 마이크로폰(예: reference microphone, error microphone), 및 컨트롤러(controller)를 포함할 수 있다. noise speaker는 소음을 발생시키는 스피커이고, cancelling speaker는 소음 제어를 위한 소리를 발생시키는 스피커일 수 있다. reference microphone는 제어하고자 하는 소음을 미리 측정하는 마이크로폰이고, error microphone는 소음 제어 결과를 측정하는 마이크로폰일 수 있다. According to one embodiment, the ANC system 520 may include at least two speakers (e.g., noise speaker, canceling speaker), at least two microphones (e.g., reference microphone, error microphone), and a controller. . A noise speaker may be a speaker that generates noise, and a canceling speaker may be a speaker that generates sound for noise control. A reference microphone may be a microphone that measures noise to be controlled in advance, and an error microphone may be a microphone that measures noise control results.

일 실시예에 따라, x(n)은 reference microphone이 측정한 신호이고, e(n)은 error microphone이 측정한 신호일 수 있다. 일 실시예에 따라, d(n)은 ANC를 통해 제어되어야 하는 소음일 수 있다. According to one embodiment, x(n) may be a signal measured by a reference microphone, and e(n) may be a signal measured by an error microphone. According to one embodiment, d(n) may be noise that must be controlled through ANC.

도 6을 참조하면, 피드-포워드 능동형 노이즈 제어 시스템은 1차 경로(P)(610), ANC 시스템(또는 ANC 필터)(620), 및 2차 경로(S)(630)를 포함할 수 있다. ANC 시스템(620)은 필터(F)(622), 추정된 2차 경로()(624), 및 LMS 모듈(626)을 포함할 수 있다. ANC 시스템(620)은 전자 장치에 포함되는 프로세서(예: 디지털 신호 프로세서(DSP))로 구현될 수 있다.Referring to Figure 6, the feed-forward active noise control system may include a primary path (P) 610, an ANC system (or ANC filter) 620, and a secondary path (S) 630. . The ANC system 620 includes a filter (F) 622, an estimated secondary path ( ) 624, and an LMS module 626. The ANC system 620 may be implemented with a processor (eg, digital signal processor (DSP)) included in an electronic device.

일 실시예에 따라, LMS 모듈(626)은 수학식 3과 같이 장기적으로 오차 신호(e)에 대한 평균 제곱 오차(mean squared error)를 최소화하도록 제어할 수 있다.According to one embodiment, the LMS module 626 may be controlled to minimize the mean squared error for the error signal e in the long term, as shown in Equation 3.

[수학식 3][Equation 3]

일 실시예에 따라, FxLMS는 수학식 4와 같이 평균에서 최적 솔루션으로 수렴할 수 있다.According to one embodiment, FxLMS may converge from the average to the optimal solution as shown in Equation 4.

[수학식 4][Equation 4]

여기서, F0(z)는 필터(F)(622)에 대한 z 도메인에서의 전달 함수이고, P(z)는 1차 경로(P)(610)에 대한 z 도메인에서의 전달 함수이고, S(z)는 2차 경로(S)(630)에 대한 z 도메인에서의 전달 함수일 수 있다.where F 0 (z) is the transfer function in the z domain for the filter (F) 622, P(z) is the transfer function in the z domain for the primary path (P) 610, and S (z) may be a transfer function in the z domain for the secondary path (S) 630.

일 실시예에 따라, 수학식 4 및 수학식 5를 참조하면, 필터(F)(622)는 유한 임펄스 응답 필터(예: finite impulse response filter (zeros only))로 표시되며 무한 응답 전달 함수(infinite response transfer function)에 근사하는 경향을 갖을 수 있다.According to one embodiment, referring to Equation 4 and Equation 5, the filter (F) 622 is expressed as a finite impulse response filter (e.g., finite impulse response filter (zeros only)) and has an infinite response transfer function (infinite It may have a tendency to approximate the response transfer function.

[수학식 5][Equation 5]

일 실시예에 따라, S(z)는 단위 원 외부의 poles을 갖을 수 있고, casual FIR 필터에 의한 잘못된 근사가 수행되고, 제한된 소음만이 제거될 수 있다. According to one embodiment, S(z) may have poles outside the unit circle, a false approximation by a casual FIR filter is performed, and only limited noise can be removed.

도 7은 일 실시예에 따른 전자 장치에 적용되는 필터 가중치를 예측하는 과정을 설명하는 도면이다. FIG. 7 is a diagram illustrating a process for predicting filter weights applied to an electronic device according to an embodiment.

본 개시는 ANC 적용 시 적응 필터에 대한 미래 가중치(또는 매개변수)를 예측하는 방안을 제안한다. 일 실시예에 따라, 필터에 다른 시점의 필터 가중치를 사용하여 필터링된 신호(y)를 출력하면 현재 시점의 ANC 성능이 향상되는 경우가 발생할 수 있다.This disclosure proposes a method for predicting future weights (or parameters) for an adaptive filter when applying ANC. According to one embodiment, when a filtered signal (y) is output using a filter weight at a different time point to a filter, ANC performance at the current time point may be improved.

도 7을 참조하면, 필터 가중치의 시간 진행 값(time advancement of filter weights)(K)에 따른 신호 감쇠(attenuation) 정도가 그래프로 표시될 수 있다. 일 실시예에 따라, 필터 가중치의 시간 진행 값(K)에 따라 신호 감쇠가 더 증가하는 구간이 발생할 수 있다. 일 실시예에 따라, 필터 가중치의 시간 진행 값(K) 및 이에 따른 신호 감쇠는 기계 학습 모델(machine learning model)에 의해 예측될 수 있다.Referring to FIG. 7, the degree of signal attenuation according to the time advancement of filter weights (K) can be displayed in a graph. According to one embodiment, a section in which signal attenuation further increases may occur depending on the time progress value (K) of the filter weight. According to one embodiment, the time progression value (K) of the filter weight and the resulting signal attenuation may be predicted by a machine learning model.

일 실시예에 따라, n번째 단계(예를 들어, n번째 시간)에서 필터(F)에 의해 필터링된 신호 y(n)는 수학식 6과 같이 표현될 수 있다.According to one embodiment, the signal y(n) filtered by the filter F at the nth step (eg, nth time) may be expressed as Equation 6.

[수학식 6][Equation 6]

여기서, x(n)은 n번째 단계(예를 들어, n번째 시간)에서의 입력 신호(x)이고, f(n+K)은 n+K 번째 단계에서 필터에 적용되는 가중치(또는 가중치 함수)일 수 있다. 일 실시예에 따라, 필터 가중치의 시간 진행 값(K)는 기계 학습 모델(machine learning model)에 의해 계산될 수 있다. 일 실시예에 따라, 기계 학습 모델(machine learning model)은 전자 장치가 스스로 데이터를 분석하고 미래 필터 가중치를 예측하는 기술일 수 있다. Here, x(n) is the input signal (x) at the nth step (e.g., the nth time), and f(n+K) is the weight (or weight function) applied to the filter at the n+Kth step. ) can be. According to one embodiment, the time progression value (K) of the filter weight may be calculated by a machine learning model. According to one embodiment, a machine learning model may be a technology in which an electronic device analyzes data on its own and predicts future filter weights.

도 8 및 도 9는 일 실시예에 따른 전자 장치가 FxLMS를 이용하여 노이즈를 제거하는 과정을 설명하는 도면이다. 도 8 및 도 9에서 피드-포워드 능동형 노이즈 제어 시스템(feed-forward active noise control system)을 포함하는 전자 장치는 도 1 내지 도 4에 도시된 전자 장치 각각과 적어도 일부가 동일하거나 유사한 구성요소를 포함하고, 적어도 일부가 동일하거나 유사한 기능을 수행할 수 있다.FIGS. 8 and 9 are diagrams illustrating a process in which an electronic device removes noise using FxLMS, according to an embodiment. The electronic device including the feed-forward active noise control system in FIGS. 8 and 9 includes components that are at least partially the same or similar to each of the electronic devices shown in FIGS. 1 to 4. And at least some of them may perform the same or similar functions.

도 8은 일 실시예에 따른 가중치 예측 모듈을 포함하는 전자 장치를 나타내는 도면이다. 일 실시예에 따라, 피드-포워드 능동형 노이즈 제어 시스템에서 ANC 시스템은 전자 장치에 포함되는 프로세서(예: 디지털 신호 프로세서(DSP))로 구현될 수 있다. FIG. 8 is a diagram illustrating an electronic device including a weight prediction module according to an embodiment. According to one embodiment, in a feed-forward active noise control system, the ANC system may be implemented with a processor (eg, digital signal processor (DSP)) included in an electronic device.

도 8을 참조하면, 피드-포워드 능동형 노이즈 제어 시스템은 1차 경로(P)(810), ANC 시스템(또는 ANC 필터)(820), 및 2차 경로(S)(830)를 포함할 수 있다. ANC 시스템(820)은 제1 필터(F)(821), 제2 필터(Fpred)(822), 추정된 2차 경로()(823, 824, 825), LMS 모듈(826), 및 가중치 예측 모듈(weight prediction)(827)을 포함할 수 있다. Referring to Figure 8, the feed-forward active noise control system may include a primary path (P) 810, an ANC system (or ANC filter) 820, and a secondary path (S) 830. . The ANC system 820 includes a first filter (F) 821, a second filter (F pred ) 822, and an estimated secondary path ( ) (823, 824, 825), an LMS module (826), and a weight prediction module (weight prediction) (827).

입력 신호(x)는 소음원에 의해 발생된 신호(또는 주변 신호)이며, 참조 신호(ref)로도 지칭될 수 있다. 입력 신호(x)는 전자 장치 내 적어도 하나의 센서 또는 마이크로폰에 의해 측정될 수 있다. The input signal (x) is a signal (or surrounding signal) generated by a noise source and may also be referred to as a reference signal (ref). The input signal (x) may be measured by at least one sensor or microphone within the electronic device.

일 실시예에 따라, 입력 신호(x)는 1차 경로(P)(810), 제1 필터(F)(821), 제2 필터(Fpred)(822), 및 추정된 2차 경로()(824) 각각으로 제공될 수 있다. 입력 신호(x)는 1차 경로(P)(810)를 거쳐 노이즈 신호(d)로 변환될 수 있다. According to one embodiment, the input signal (x) includes a primary path (P) 810, a first filter (F) 821, a second filter (F pred ) 822, and an estimated secondary path ( )(824) can be provided respectively. The input signal (x) may be converted into a noise signal (d) through the primary path (P) 810.

일 실시예에 따라, 제1 필터(F)(821)는 입력 신호(x)를 필터링하여 제1 필터링 신호(y)를 출력할 수 있다. 제1 필터(F)(821)는 피드백 루프를 통해 반복적으로 계산되는 제1 필터링 신호(y)를 가중치 예측 모듈(827)로 제공할 수 있다. 가중치 예측 모듈(827)은 제1 필터링 신호(y)에 기반하여 제2 필터(Fpred)(822)에 적용할 예측 가중치를 계산(또는 생성)할 수 있다. 일 실시예에 따라, 가중치 예측 모듈(827)은 복수의 제1 필터링 신호(y)에 기반하여 머신 러닝을 통해 제2 필터(Fpred)(822)에 적용할 예측 가중치를 계산(또는 생성)할 수 있다.According to one embodiment, the first filter (F) 821 may filter the input signal (x) and output a first filtered signal (y). The first filter (F) 821 may provide a first filtering signal (y) repeatedly calculated through a feedback loop to the weight prediction module 827. The weight prediction module 827 may calculate (or generate) a prediction weight to be applied to the second filter (F pred ) 822 based on the first filtering signal (y). According to one embodiment, the weight prediction module 827 calculates (or generates) a prediction weight to be applied to the second filter (F pred ) 822 through machine learning based on the plurality of first filtering signals (y). can do.

일 실시예에 따라, 입력 신호(x)는 추정된 2차 경로()(824)를 거쳐 수정된 입력 신호 (x')로 변환될 수 있다. 수정된 입력 신호 (x')는 LMS 모듈(826)로 제공되며, LMS 모듈(826)은 가중치(또는 필터 계수)를 결정하고, 이를 제1 필터(F)(821)로 제공할 수 있다. 일 실시예에 따라, LMS 모듈(826)은 제1 필터(F)(821)를 위한 최적 필터 계수 세트를 계산할 수 있고, 제1 필터(F)(821)는 최적 필터 계수 세트에 상응하는 필터 전달 함수 W(z)를 갖을 수 있다.According to one embodiment, the input signal (x) is an estimated secondary path ( ) can be converted into a modified input signal (x') through 824. The modified input signal (x') is provided to the LMS module 826, which determines a weight (or filter coefficient) and provides it to the first filter (F) 821. According to one embodiment, the LMS module 826 may calculate an optimal filter coefficient set for the first filter (F) 821, and the first filter (F) 821 may be a filter corresponding to the optimal filter coefficient set. We can have a transfer function W(z).

일 실시예에 따라, 제2 필터(Fpred)(822)에 의해 필터링된 제2 필터링 신호(y)는 2차 경로(S)(830)를 거쳐 수정된 필터링된 신호(y')로 변환될 수 있다. 수정된 필터링된 신호(y')는 1차 경로(P)(810)의 출력인 노이즈 신호(d)와 중첩될 수 있다. 수정된 필터링된 신호(y')와 노이즈 신호(d) 간 중첩의 결과로 오차 신호(e)가 생성될 수 있다. According to one embodiment, the second filtered signal (y) filtered by the second filter (F pred ) 822 is converted into a modified filtered signal (y') via a secondary path (S) 830. It can be. The modified filtered signal (y') may overlap with the noise signal (d) that is the output of the primary path (P) 810. An error signal (e) may be generated as a result of overlap between the modified filtered signal (y') and the noise signal (d).

일 실시예에 따라, n번째 단계(예를 들어, n번째 시간)에서 제2 필터(Fpred)(822)에 의해 필터링된 제2 필터링 신호(y)는 수학식 7과 같이 표현될 수 있다.According to one embodiment, the second filtering signal (y) filtered by the second filter (F pred ) 822 at the nth stage (e.g., nth time) may be expressed as Equation 7: .

[수학식 7][Equation 7]

여기서, x(n)은 n번째 단계(예를 들어, n번째 시간)에서의 입력 신호(x)이고, f(n+K)은 n+K 번째 단계에서 제2 필터(Fpred)(822)에 적용되는 가중치(또는 가중치 함수)일 수 있다. 일 실시예에 따라, 필터 가중치의 시간 진행 값(K)은 기계 학습 모델(machine learning model)에 의해 계산될 수 있다. 일 실시예에 따라, 가중치 예측 모듈(827)은 f(n+K)을 예측(또는 계산)할 수 있다.Here, x(n) is the input signal (x) at the nth stage (e.g., nth time), and f(n+K) is the second filter (F pred ) at the n+Kth stage (822 ) may be a weight (or weight function) applied to According to one embodiment, the time progression value (K) of the filter weight may be calculated by a machine learning model. According to one embodiment, the weight prediction module 827 may predict (or calculate) f(n+K).

일 실시예에 따라, 가중치 예측 모듈(827)은 머신 러닝 모델에 기반하여 수학식 8과 같이 제2 필터(Fpred)(822)에 대한 가중치(또는 가중치 함수)를 예측할 수 있다.According to one embodiment, the weight prediction module 827 may predict the weight (or weight function) for the second filter (F pred ) 822 as shown in Equation 8 based on a machine learning model.

[수학식 8][Equation 8]

여기서, f(n)은 n번째 단계에서의 가중치(또는 가중치 함수)이고, f(n-1)은 n-1번째 단계에서의 가중치(또는 가중치 함수)이고, f(n-2)은 n-2번째 단계에서의 가중치(또는 가중치 함수)이고, f(n-p)은 n-p 번째 단계에서의 가중치(또는 가중치 함수)일 수 있다. M(f(n),f(n-1),f(n-2),..., f(n-p))은 n번째 단계부터 n-p 번째 단계까지의 가중치(또는 가중치 함수)를 고려한 머신 러닝 모델 함수일 수 있다. Here, f(n) is the weight (or weight function) at the nth step, f(n-1) is the weight (or weight function) at the n-1th step, and f(n-2) is the nth step. -This is the weight (or weight function) in the second stage, and f(n-p) may be the weight (or weight function) in the n-pth stage. M(f(n),f(n-1),f(n-2),..., f(n-p)) is machine learning considering the weights (or weight function) from the nth step to the n-pth step. It may be a model function.

도 9는 일 실시예에 따른 가중치 변경 예측 모듈을 포함하는 전자 장치를 나타내는 도면이다.FIG. 9 is a diagram illustrating an electronic device including a weight change prediction module according to an embodiment.

도 9는 FxLMS 알고리즘을 사용하는 피드-포워드 능동형 노이즈 제어 시스템(feed-forward active noise control system)의 일 예시를 도시한다. 일 실시예에 따라, 피드-포워드 능동형 노이즈 제어 시스템에서 ANC 시스템은 전자 장치에 포함되는 프로세서(예: 디지털 신호 프로세서(DSP))로 구현될 수 있다. Figure 9 shows an example of a feed-forward active noise control system using the FxLMS algorithm. According to one embodiment, in a feed-forward active noise control system, the ANC system may be implemented with a processor (eg, digital signal processor (DSP)) included in an electronic device.

도 9를 참조하면, 피드-포워드 능동형 노이즈 제어 시스템은 1차 경로(P)(910), ANC 시스템(또는 ANC 필터)(920), 및 2차 경로(S)(930)를 포함할 수 있다. ANC 시스템(920)은 필터(F)(922), 추정된 2차 경로()(924), LMS 모듈(926), 및 가중치 변경 예측 모듈(928)을 포함할 수 있다. Referring to Figure 9, the feed-forward active noise control system may include a primary path (P) 910, an ANC system (or ANC filter) 920, and a secondary path (S) 930. . The ANC system 920 includes a filter (F) 922, an estimated secondary path ( ) 924, an LMS module 926, and a weight change prediction module 928.

입력 신호(x)는 소음원에 의해 발생된 신호(또는 주변 신호)이며, 참조 신호로도 지칭될 수 있다. 입력 신호(x)는 전자 장치 내 적어도 하나의 센서 또는 마이크로폰에 의해 측정될 수 있다. The input signal (x) is a signal (or surrounding signal) generated by a noise source and may also be referred to as a reference signal. The input signal (x) may be measured by at least one sensor or microphone within the electronic device.

일 실시예에 따라, 입력 신호(x)는 1차 경로(P)(910), 필터(F)(922), 및 추정된 2차 경로()(924) 각각으로 제공될 수 있다. 입력 신호(x)는 1차 경로(P)(910)를 거쳐 노이즈 신호(d)로 변환될 수 있다. 필터(F)(922)는 입력 신호(x)를 필터링하여 필터링된 신호(y)를 출력할 수 있다. 입력 신호(x)는 추정된 2차 경로()(924)를 거쳐 수정된 입력 신호 (x')로 변환될 수 있다.According to one embodiment, the input signal (x) is divided into a primary path (P) 910, a filter (F) 922, and an estimated secondary path ( )(924) can be provided respectively. The input signal (x) may be converted into a noise signal (d) through the primary path (P) 910. The filter (F) 922 may filter the input signal (x) and output the filtered signal (y). The input signal (x) is the estimated secondary path ( ) can be converted to a modified input signal (x') through 924.

일 실시예에 따라, 필터(F)(922)에 의해 필터링된 신호(y)는 2차 경로(S)(930)를 거쳐 수정된 필터링된 신호(y')로 변환될 수 있다. 수정된 필터링된 신호(y')는 1차 경로(P)(910)의 출력인 노이즈 신호(d)와 중첩될 수 있다. 수정된 필터링된 신호(y')와 노이즈 신호(d) 간 중첩의 결과로 오차 신호(e)가 생성될 수 있다. According to one embodiment, the signal (y) filtered by the filter (F) 922 may be converted into a modified filtered signal (y') through a secondary path (S) 930. The modified filtered signal (y') may overlap with the noise signal (d) that is the output of the primary path (P) 910. An error signal (e) may be generated as a result of overlap between the modified filtered signal (y') and the noise signal (d).

일 실시예에 따라, LMS 모듈(926)은 추정된 2차 경로()(924)를 거쳐 수정된 입력 신호 (x') 및 오차 신호(e)에 기반하여 필터(F)(922)에 사용될 최적의 가중치(또는 필터 계수)를 계산하기 위해 LMS(least mean square) 알고리즘을 사용할 수 있다. 일 실시예에 따라, LMS 모듈(926)은 가중치(또는 필터 계수)를 결정하고, 이를 가중치 변경 예측 모듈(928)로 제공할 수 있다. According to one embodiment, the LMS module 926 determines the estimated secondary path ( ) (924) to calculate the optimal weight (or filter coefficient) to be used in the filter (F) (922) based on the corrected input signal (x') and error signal (e) (least mean square (LMS)) Algorithms can be used. According to one embodiment, the LMS module 926 may determine a weight (or filter coefficient) and provide it to the weight change prediction module 928.

일 실시예에 따라, LMS 모듈(926)은 n번째 단계(예를 들어, n번째 시간)에서의 가중치(또는 필터 계수) 변화 df(n)를 수학식 9와 같이 계산할 수 있다.According to one embodiment, the LMS module 926 may calculate the weight (or filter coefficient) change df(n) at the nth step (eg, nth time) as shown in Equation 9.

[수학식 9][Equation 9]

여기서, 는 미리 설정된 계수이고, e(n)은 n번째 단계에서의 오차 신호(e)이고, x'(n)은 n번째 단계에서의 수정된 입력 신호 (x')일 수 있다.here, is a preset coefficient, e(n) may be an error signal (e) at the nth stage, and x'(n) may be a modified input signal (x') at the nth stage.

일 실시예에 따라, LMS 모듈(926)은 가중치(또는 필터 계수) 변화 df(n)을 가중치 변경 예측 모듈(928)로 제공할 수 있다.According to one embodiment, the LMS module 926 may provide the weight (or filter coefficient) change df(n) to the weight change prediction module 928.

일 실시예에 따라, 가중치 변경 예측 모듈(928)은 머신 러닝 모델을 이용하여 수학식 10와 같이 필터(F)(922)에 대한 가중치(또는 가중치 함수)를 예측할 수 있다.According to one embodiment, the weight change prediction module 928 may predict the weight (or weight function) for the filter (F) 922 as shown in Equation 10 using a machine learning model.

[수학식 10][Equation 10]

여기서, df(n)은 n번째 단계에서의 가중치(또는 가중치 함수) 변화이고, df(n-1)은 n-1번째 단계에서의 가중치(또는 가중치 함수) 변화이고, df(n-2)은 n-2번째 단계에서의 가중치(또는 가중치 함수) 변화이고, df(n-p)은 n-p 번째 단계에서의 가중치(또는 가중치 함수) 변화일 수 있다. M(df(n),df(n-1),df(n-2),..., df(n-p))은 n번째 단계부터 n-p 번째 단계까지의 가중치(또는 가중치 함수) 변화를 고려한 머신 러닝 모델 함수일 수 있다. f(n+K-1)은 n+K-1 단계에서의 가중치(또는 가중치 함수)이고, f(n+K)는 n+K 단계에서의 가중치(또는 가중치 함수)일 수 있다. Here, df(n) is the change in weight (or weight function) at the nth step, df(n-1) is the change in weight (or weight function) at the n-1th step, and df(n-2) is the weight (or weight function) change in the n-2th step, and df(n-p) may be the weight (or weight function) change in the n-pth step. M(df(n),df(n-1),df(n-2),..., df(n-p)) is a machine that considers the change in weight (or weight function) from the nth step to the n-pth step. It may be a learning model function. f(n+K-1) may be a weight (or weight function) at step n+K-1, and f(n+K) may be a weight (or weight function) at step n+K.

일 실시예에 따라, n번째 단계(예를 들어, n번째 시간)에서 필터(F)(922)에 의해 필터링된 신호(y)는 수학식 11과 같이 표현될 수 있다.According to one embodiment, the signal (y) filtered by the filter (F) 922 at the nth stage (eg, nth time) may be expressed as Equation 11.

[수학식 11][Equation 11]

여기서, x(n)은 n번째 단계(예를 들어, n번째 시간)에서의 입력 신호(x)이고, f(n+K)은 n+K 번째 단계에서 필터(F)(922)에 적용되는 가중치(또는 가중치 함수)일 수 있다. 일 실시예에 따라, 필터 가중치의 시간 진행 값(K)은 기계 학습 모델(machine learning model)에 의해 계산될 수 있다. 일 실시예에 따라, 가중치 변경 예측 모듈(928)은 f(n+K)을 예측(또는 계산)할 수 있다.Here, x(n) is the input signal (x) at the nth step (e.g., nth time), and f(n+K) is applied to the filter (F) 922 at the n+Kth step. It may be a weight (or weight function) that is According to one embodiment, the time progression value (K) of the filter weight may be calculated by a machine learning model. According to one embodiment, the weight change prediction module 928 may predict (or calculate) f(n+K).

도 10은 일 실시예에 따른 전자 장치의 동작을 설명하는 도면이다. FIG. 10 is a diagram explaining the operation of an electronic device according to an embodiment.

도 10을 참조하면, 전자 장치는 능동형 노이즈 제거(active noise cancellation, ANC)를 수행하기 위한 ANC 시스템을 시작할 수 있다(1000). 전자 장치는 ANC를 위한 제1 모드(1010) 및/또는 제2 모드(1020)를 실행할 수 있다. 도 10에서 전자 장치는 도 1 내지 도 9에 도시된 전자 장치 각각과 적어도 일부가 동일하거나 유사한 구성요소를 포함하고, 적어도 일부가 동일하거나 유사한 기능을 수행할 수 있다.Referring to FIG. 10, the electronic device may start an ANC system to perform active noise cancellation (ANC) (1000). The electronic device may execute a first mode 1010 and/or a second mode 1020 for ANC. The electronic device in FIG. 10 includes at least some of the same or similar components as each of the electronic devices shown in FIGS. 1 to 9 , and at least some of the electronic devices may perform the same or similar functions.

일 실시예에 따라, 전자 장치가 ANC를 위한 제1 모드(1010) 실행 시 초기 수렴(initial convergence, 1011) 후 필터에 대한 가중치를 수집할 수 있다(filter weight gathering, 1013). 전자 장치는 필터에 대한 가중치 수집 후 필터에 적용할 최적의 가중치 쉬프트를 추정할 수 있다(estimation of optimal weight shift, 1015). 전자 장치는 필터에 적용할 최적의 가중치 쉬프트 추정 후 가중치에 대한 예측 모델 트레이닝(prediction model training, 1017)을 수행할 수 있다. According to one embodiment, when the electronic device executes the first mode 1010 for ANC, weights for the filter may be collected after initial convergence (1011) (filter weight gathering, 1013). The electronic device can estimate the optimal weight shift to be applied to the filter after collecting the weights for the filter (estimation of optimal weight shift, 1015). The electronic device may perform prediction model training (1017) on the weights after estimating the optimal weight shift to be applied to the filter.

일 실시예에 따라, 전자 장치가 ANC를 위한 제2 모드(1020) 실행 시 필터 가중치에 대한 예측 모델을 적용할 수 있다(apply predictive model, 1021). 전자 장치는 ANC 성능을 모니터링할 수 있다(monitor ANC performance, 1023). 전자 장치는 ANC 성능 모니터링 후 필터 가중치 수집하고(filter weight gathering, 1025), 필터 가중치에 대한 예측 모델 리트레이닝(Prediction model retraining, 1027)을 수행할 수 있다. 전자 장치는 필터 가중치에 대한 예측 모델 리트레이닝 후 다시 필터 가중치에 대한 예측 모델을 적용할 수 있다(apply predictive model, 1021).According to one embodiment, the electronic device may apply a predictive model for filter weights when executing the second mode 1020 for ANC (apply predictive model, 1021). The electronic device may monitor ANC performance (monitor ANC performance, 1023). After monitoring ANC performance, the electronic device may collect filter weights (filter weight gathering, 1025) and perform prediction model retraining (prediction model retraining, 1027) for the filter weights. The electronic device may re-apply the prediction model for the filter weight after retraining the prediction model for the filter weight (apply predictive model, 1021).

도 11a 및 도 11b는 일 실시예에 따른 전자 장치의 동작에 따른 효과를 나타내는 도면이다. FIGS. 11A and 11B are diagrams showing effects resulting from the operation of an electronic device according to an embodiment.

도 11a를 참조하면, Feed-forward FxLMS 방식, 도 8에 도시된 가중치 예측(weight prediction) 방식, 도 9에 도시된 가중치 업데이트(weight update prediction) 방식, wiener 방식 각각의 시뮬레이션에 따른 각 주파수 별 attenuation 을 나타낸다. Referring to FIG. 11A, attenuation for each frequency according to simulations of the feed-forward FxLMS method, the weight prediction method shown in FIG. 8, the weight update prediction method shown in FIG. 9, and the wiener method. represents.

도 11b를 참조하면, 도 8에 도시된 가중치 예측(weight prediction) 방식, 또는 도 9에 도시된 가중치 업데이트(weight update prediction) 방식은 200~300Hz 범위에서 최소가 아닌 위상 영점에 대해 6~10dB 정도의 성능이 향상될 수 있다.Referring to FIG. 11B, the weight prediction method shown in FIG. 8 or the weight update prediction method shown in FIG. 9 has about 6 to 10 dB for non-minimum phase zero in the range of 200 to 300 Hz. performance can be improved.

도 12는 일 실시예에 따른 전자 장치의 동작 방법을 설명하기 위한 순서도이다. Figure 12 is a flowchart for explaining a method of operating an electronic device according to an embodiment.

도 12를 참조하면, 1210 단계에서, 전자 장치는 입력 신호에 포함되는 노이즈 신호, 및 상기 입력 신호가 필터링된 제1 필터링 신호의 연산 결과에 따라 제거되지 않은 노이즈 신호를 나타내는 오차 신호를 확인할 수 있다. 일 실시예에 따라, 전자 장치는 무선 이어폰, 헤드셋, 이어 버드, TWS(true wireless stereo), 또는 이어셋 중 하나일 수 있다. 도 12에서 전자 장치는 도 1 내지 도 10에 도시된 전자 장치 각각과 적어도 일부가 동일하거나 유사한 구성요소를 포함하고, 적어도 일부가 동일하거나 유사한 기능을 수행할 수 있다.Referring to FIG. 12, in step 1210, the electronic device may check a noise signal included in the input signal and an error signal representing the noise signal that has not been removed according to the operation result of the first filtering signal from which the input signal has been filtered. . According to one embodiment, the electronic device may be one of wireless earphones, a headset, earbuds, true wireless stereo (TWS), or an earset. In FIG. 12 , the electronic device includes at least some components that are the same or similar to each of the electronic devices shown in FIGS. 1 to 10 , and at least some of them may perform the same or similar functions.

1220 단계에서, 전자 장치는 상기 입력 신호 및 상기 오차 신호에 기반하여 LMS 알고리즘을 이용하여 복수의 필터 가중치들을 결정할 수 있다. 1230 단계에서, 전자 장치는 상기 복수의 필터 가중치들에 기반하여 머신 러닝(machine learning)을 이용하여 필터에 적용될 필터 가중치를 예측할 수 있다. In step 1220, the electronic device may determine a plurality of filter weights using an LMS algorithm based on the input signal and the error signal. In step 1230, the electronic device may predict a filter weight to be applied to the filter using machine learning based on the plurality of filter weights.

1240 단계에서, 전자 장치는 상기 필터 가중치에 기반하여 상기 입력 신호를 필터링하여 제2 필터링 신호를 생성할 수 있다. 1250 단계에서, 전자 장치는 상기 입력 신호 및 상기 제2 필터링 신호에 기반하여 상기 오차 신호가 미리 설정된 범위 내에 속하도록 상기 노이즈 신호를 제거할 수 있다. In step 1240, the electronic device may generate a second filtering signal by filtering the input signal based on the filter weight. In step 1250, the electronic device may remove the noise signal so that the error signal falls within a preset range based on the input signal and the second filtering signal.

일 실시예에 따라, 전자 장치는 상기 입력 신호를 감지하기 위한 제1 마이크로 폰 및 상기 오차 신호를 감지하기 위한 제2 마이크로폰을 더 포함할 수 있다. 일 실시예에 따라, 전자 장치는 상기 필터, 및 상기 복수의 필터 가중치들에 기반하여 상기 머신 러닝을 이용하여 상기 필터에 적용될 상기 필터 가중치를 예측하는 가중치 예측 모듈을 더 포함할 수 있다. 일 실시예에 따라, 전자 장치는 상기 복수의 필터 가중치들에 기반하여 상기 머신 러닝을 이용하여 상기 필터에 적용될 상기 필터 가중치의 변화를 예측하는 가중치 변경 예측 모듈을 더 포함할 수 있다. 일 실시예에 따라, 전자 장치는 외부 전자 장치와 블루투스 네트워크에 따라 근거리에서 무선 통신을 수행할 수 있다. According to one embodiment, the electronic device may further include a first microphone for detecting the input signal and a second microphone for detecting the error signal. According to one embodiment, the electronic device may further include a weight prediction module that predicts the filter weight to be applied to the filter using machine learning based on the filter and the plurality of filter weights. According to one embodiment, the electronic device may further include a weight change prediction module that predicts a change in the filter weight to be applied to the filter using the machine learning based on the plurality of filter weights. According to one embodiment, an electronic device may perform wireless communication with an external electronic device in a short distance based on a Bluetooth network.

일 실시예에 따르면, 컴퓨터로 판독 가능한 기록 매체 내에 능동형 노이즈 제거 방법을 수행하는 명령어들(instructions)을 포함하는 적어도 하나의 컴퓨터 프로그램이 기록될 수 있다. 상기 능동형 노이즈 제거 방법은, 입력 신호를 감지하는 단계를 포함할 수 있다. 상기 능동형 노이즈 제거 방법은, 상기 입력 신호에 포함되는 노이즈 신호, 및 상기 입력 신호가 필터링된 제1 필터링 신호의 연산 결과에 따라 제거되지 않은 노이즈 신호를 나타내는 오차 신호를 확인하는 단계를 포함할 수 있다. 상기 능동형 노이즈 제거 방법은, 상기 입력 신호 및 상기 오차 신호에 기반하여 LMS(least mean square) 알고리즘을 이용하여 복수의 필터 가중치들을 결정하는 단계를 포함할 수 있다. 상기 능동형 노이즈 제거 방법은, 상기 복수의 필터 가중치들에 기반하여 머신 러닝(machine learning)을 이용하여 필터에 적용될 필터 가중치를 예측하는 단계를 포함할 수 있다. According to one embodiment, at least one computer program including instructions for performing an active noise removal method may be recorded in a computer-readable recording medium. The active noise removal method may include detecting an input signal. The active noise removal method may include the step of checking a noise signal included in the input signal and an error signal representing a noise signal that has not been removed according to an operation result of a first filtering signal from which the input signal is filtered. . The active noise removal method may include determining a plurality of filter weights using a least mean square (LMS) algorithm based on the input signal and the error signal. The active noise removal method may include predicting a filter weight to be applied to a filter using machine learning based on the plurality of filter weights.

Claims (17)

능동형 노이즈 제거(active noise cancellation)를 수행하는 전자 장치에 있어서,
입력 신호를 감지하기 위한 제1 마이크로폰(도 1의 150); 및
상기 제1 마이크로폰에 연결된 적어도 하나의 프로세서(도 1의 120; 도 8의 820; 도 9의 920;)를 포함하고, 상기 적어도 하나의 프로세서(도 1의 120; 도 8의 820; 도 9의 920;)는,
상기 입력 신호에 포함되는 노이즈 신호, 및 상기 입력 신호가 필터링된 제1 필터링 신호의 연산 결과에 따라 제거되지 않은 노이즈 신호를 나타내는 오차 신호를 확인하고,
상기 입력 신호 및 상기 오차 신호에 기반하여 LMS(least mean square) 알고리즘을 이용하여 복수의 필터 가중치들을 결정하고,
상기 복수의 필터 가중치들에 기반하여 머신 러닝(machine learning)을 이용하여 필터에 적용될 필터 가중치를 예측하도록 설정되는, 전자 장치.
In an electronic device that performs active noise cancellation,
A first microphone (150 in FIG. 1) for detecting an input signal; and
It includes at least one processor (120 in FIG. 1; 820 in FIG. 8; 920 in FIG. 9) connected to the first microphone, and the at least one processor (120 in FIG. 1; 820 in FIG. 8; 920 in FIG. 9). 920;) is,
Checking a noise signal included in the input signal and an error signal representing a noise signal that has not been removed according to an operation result of a first filtering signal from which the input signal is filtered,
Determining a plurality of filter weights using a least mean square (LMS) algorithm based on the input signal and the error signal,
An electronic device configured to predict a filter weight to be applied to a filter using machine learning based on the plurality of filter weights.
제1항에 있어서, 상기 적어도 하나의 프로세서는,
상기 필터 가중치에 기반하여 상기 입력 신호를 필터링하여 제2 필터링 신호를 생성하도록 설정되는, 전자 장치.
The method of claim 1, wherein the at least one processor:
An electronic device configured to generate a second filtering signal by filtering the input signal based on the filter weight.
제1항 또는 제2항 중 어느 하나에 있어서, 상기 적어도 하나의 프로세서는,
상기 입력 신호 및 상기 필터 가중치에 기반하여 상기 오차 신호가 미리 설정된 범위 내에 속하도록 상기 노이즈 신호를 제거하도록 설정되는, 전자 장치.
The method of claim 1 or 2, wherein the at least one processor:
An electronic device configured to remove the noise signal so that the error signal falls within a preset range based on the input signal and the filter weight.
제1항 또는 제3항 중 어느 하나에 있어서,
상기 오차 신호를 감지하기 위한 제2 마이크로폰을 더 포함하도록 설정되는, 전자 장치.
According to either paragraph 1 or 3,
The electronic device is configured to further include a second microphone for detecting the error signal.
제1항 또는 제4항 중 어느 하나에 있어서, 상기 적어도 하나의 프로세서는,
상기 필터; 및
상기 복수의 필터 가중치들에 기반하여 상기 머신 러닝을 이용하여 상기 필터에 적용될 상기 필터 가중치를 예측하는 가중치 예측 모듈을 더 포함하도록 설정되는, 전자 장치.
The method of claim 1 or 4, wherein the at least one processor:
the filter; and
The electronic device is configured to further include a weight prediction module that predicts the filter weight to be applied to the filter using the machine learning based on the plurality of filter weights.
제1항 또는 제5항 중 어느 하나에 있어서, 상기 적어도 하나의 프로세서는,
상기 복수의 필터 가중치들에 기반하여 상기 머신 러닝을 이용하여 상기 필터에 적용될 상기 필터 가중치의 변화를 예측하는 가중치 변경 예측 모듈을 더 포함하도록 설정되는, 전자 장치.
The method of claim 1 or 5, wherein the at least one processor:
The electronic device is configured to further include a weight change prediction module that predicts a change in the filter weight to be applied to the filter using the machine learning based on the plurality of filter weights.
제1항 또는 제6항 중 어느 하나에 있어서,
상기 전자 장치는 무선 이어폰, 헤드셋, 이어 버드, TWS(true wireless stereo), 또는 이어셋 중 하나인, 전자 장치.
According to any one of paragraphs 1 and 6,
The electronic device is one of wireless earphones, a headset, earbuds, true wireless stereo (TWS), or an earset.
제1항 또는 제7항 중 어느 하나에 있어서,
상기 전자 장치는 외부 전자 장치와 블루투스 네트워크에 따라 근거리에서 무선 통신을 수행하는, 전자 장치.
According to either paragraph 1 or 7,
The electronic device performs wireless communication with an external electronic device at a short distance based on a Bluetooth network.
능동형 노이즈 제거(active noise cancellation)를 수행하는 전자 장치의 동작 방법에 있어서,
입력 신호를 감지하는 단계;
상기 입력 신호에 포함되는 노이즈 신호, 및 상기 입력 신호가 필터링된 제1 필터링 신호의 연산 결과에 따라 제거되지 않은 노이즈 신호를 나타내는 오차 신호를 확인하는 단계;
상기 입력 신호 및 상기 오차 신호에 기반하여 LMS(least mean square) 알고리즘을 이용하여 복수의 필터 가중치들을 결정하는 단계; 및
상기 복수의 필터 가중치들에 기반하여 머신 러닝(machine learning)을 이용하여 필터에 적용될 필터 가중치를 예측하는 단계를 포함하는, 방법.
In a method of operating an electronic device that performs active noise cancellation,
detecting an input signal;
checking a noise signal included in the input signal and an error signal representing a noise signal that has not been removed according to an operation result of a first filtering signal from which the input signal is filtered;
determining a plurality of filter weights using a least mean square (LMS) algorithm based on the input signal and the error signal; and
A method comprising predicting a filter weight to be applied to a filter using machine learning based on the plurality of filter weights.
제9항에 있어서,
상기 필터 가중치에 기반하여 상기 입력 신호를 필터링하여 제2 필터링 신호를 생성하는 단계를 더 포함하는, 방법.
According to clause 9,
The method further includes generating a second filtered signal by filtering the input signal based on the filter weight.
제9항 또는 제10항 중 어느 하나에 있어서,
상기 입력 신호 및 상기 필터 가중치에 기반하여 상기 오차 신호가 미리 설정된 범위 내에 속하도록 상기 노이즈 신호를 제거하는 단계를 더 포함하는, 방법.
According to either paragraph 9 or 10,
The method further includes removing the noise signal so that the error signal falls within a preset range based on the input signal and the filter weight.
제9항 또는 제11항 중 어느 하나에 있어서,
상기 전자 장치는 상기 오차 신호를 감지하기 위한 제2 마이크로폰을 더 포함하는, 방법.
According to either paragraph 9 or 11,
The method of claim 1, wherein the electronic device further includes a second microphone for detecting the error signal.
제9항 또는 제12항 중 어느 하나에 있어서, 상기 전자 장치는,
상기 필터; 및
상기 복수의 필터 가중치들에 기반하여 상기 머신 러닝을 이용하여 상기 필터에 적용될 상기 필터 가중치를 예측하는 가중치 예측 모듈을 더 포함하도록 설정되는, 방법.
The method of claim 9 or 12, wherein the electronic device,
the filter; and
The method is configured to further include a weight prediction module that predicts the filter weight to be applied to the filter using the machine learning based on the plurality of filter weights.
제9항 또는 제13항 중 어느 하나에 있어서, 상기 전자 장치는,
상기 복수의 필터 가중치들에 기반하여 상기 머신 러닝을 이용하여 상기 필터에 적용될 상기 필터 가중치의 변화를 예측하는 가중치 변경 예측 모듈을 더 포함하도록 설정되는, 방법.
The method of claim 9 or 13, wherein the electronic device,
The method is configured to further include a weight change prediction module that predicts a change in the filter weight to be applied to the filter using the machine learning based on the plurality of filter weights.
제9항 또는 제14항 중 어느 하나에 있어서,
상기 전자 장치는 무선 이어폰, 헤드셋, 이어 버드, TWS(true wireless stereo), 또는 이어셋 중 하나인, 방법.
According to either clause 9 or clause 14,
The method of claim 1, wherein the electronic device is one of wireless earphones, a headset, earbuds, true wireless stereo (TWS), or an earset.
제9항 또는 제15항 중 어느 하나에 있어서,
상기 전자 장치는 외부 전자 장치와 블루투스 네트워크에 따라 근거리에서 무선 통신을 수행하는, 방법.
According to either clause 9 or clause 15,
A method wherein the electronic device performs wireless communication at a short distance with an external electronic device according to a Bluetooth network.
능동형 노이즈 제거(active noise cancellation) 방법을 수행하는 명령어들(instructions)을 포함하는 적어도 하나의 컴퓨터 프로그램이 기록된 컴퓨터로 판독 가능한 기록 매체에 있어서,
상기 방법은,
입력 신호를 감지하는 단계;
상기 입력 신호에 포함되는 노이즈 신호, 및 상기 입력 신호가 필터링된 제1 필터링 신호의 연산 결과에 따라 제거되지 않은 노이즈 신호를 나타내는 오차 신호를 확인하는 단계;
상기 입력 신호 및 상기 오차 신호에 기반하여 LMS(least mean square) 알고리즘을 이용하여 복수의 필터 가중치들을 결정하는 단계; 및
상기 복수의 필터 가중치들에 기반하여 머신 러닝(machine learning)을 이용하여 필터에 적용될 필터 가중치를 예측하는 단계를 포함하는, 컴퓨터로 판독 가능한 기록 매체.
In the computer-readable recording medium on which at least one computer program including instructions for performing an active noise cancellation method is recorded,
The method is:
detecting an input signal;
checking a noise signal included in the input signal and an error signal representing a noise signal that has not been removed according to an operation result of a first filtering signal from which the input signal is filtered;
determining a plurality of filter weights using a least mean square (LMS) algorithm based on the input signal and the error signal; and
A computer-readable recording medium comprising predicting filter weights to be applied to a filter using machine learning based on the plurality of filter weights.
KR1020220098102A 2022-08-05 2022-08-05 Electronic device for performing active noise cancellation and method for thereof KR20240020087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020220098102A KR20240020087A (en) 2022-08-05 2022-08-05 Electronic device for performing active noise cancellation and method for thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020220098102A KR20240020087A (en) 2022-08-05 2022-08-05 Electronic device for performing active noise cancellation and method for thereof

Publications (1)

Publication Number Publication Date
KR20240020087A true KR20240020087A (en) 2024-02-14

Family

ID=89896516

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220098102A KR20240020087A (en) 2022-08-05 2022-08-05 Electronic device for performing active noise cancellation and method for thereof

Country Status (1)

Country Link
KR (1) KR20240020087A (en)

Similar Documents

Publication Publication Date Title
EP4246278A1 (en) Electronic device including flexible display and method for operating same
US20220208208A1 (en) Electronic device and method for controlling speech input/output of electronic device
US20220225008A1 (en) Electronic device for reducing internal noise and method thereof
KR20240020087A (en) Electronic device for performing active noise cancellation and method for thereof
US20230087784A1 (en) Electronic device including multi-way speaker and operation method thereof
US20230421946A1 (en) Audio data processing method and electronic device supporting same
US20230379623A1 (en) Method for processing audio data and electronic device supporting same
US20230215453A1 (en) Electronic device for controlling beamforming and operating method thereof
US20230283944A1 (en) Electronic device and method for outputting sound
US20230112073A1 (en) Electronic device for controlling ambient sound based on audio scene and operating method thereof
KR20220096460A (en) Electronic device and method for controlling voice input and output thereof
KR20230052783A (en) Electronic device for controlling ambient sound based on audio scene and operating method thereof
US20230217152A1 (en) Wearable device
KR20240049074A (en) Electronic device and method for generating vibration sound signal
US20230026128A1 (en) Electronic device and method for generating audio signal
US20220400326A1 (en) Electronic device including microphone module
EP4283959A1 (en) Electronic device and operation method therefor
US20230262386A1 (en) Method and device for controlling microphone input/output by wireless audio device during multi-recording in electronic device
KR20220017080A (en) Method for processing voice signal and apparatus using the same
JP2024518261A (en) Electronic device and method of operation thereof
US20220360897A1 (en) Wearable device and method for controlling audio output using multi digital to analog converter path
KR20230103814A (en) Wearable device
KR20240050211A (en) Electronic device and method for detecting resonance space change of speaker
KR20230067427A (en) Electronic device for controlling beamforming and operating method thereof
KR20230129893A (en) Electronic device and method for outputting sound