KR20210015234A - Electronic apparatus, and method of controlling to execute function according to voice command thereof - Google Patents

Electronic apparatus, and method of controlling to execute function according to voice command thereof Download PDF

Info

Publication number
KR20210015234A
KR20210015234A KR1020190093778A KR20190093778A KR20210015234A KR 20210015234 A KR20210015234 A KR 20210015234A KR 1020190093778 A KR1020190093778 A KR 1020190093778A KR 20190093778 A KR20190093778 A KR 20190093778A KR 20210015234 A KR20210015234 A KR 20210015234A
Authority
KR
South Korea
Prior art keywords
voice command
electronic device
database
voice
predicate
Prior art date
Application number
KR1020190093778A
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 KR1020190093778A priority Critical patent/KR20210015234A/en
Priority to US16/936,484 priority patent/US11620996B2/en
Publication of KR20210015234A publication Critical patent/KR20210015234A/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/02Feature extraction for speech recognition; Selection of recognition unit
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/14Speech classification or search using statistical models, e.g. Hidden Markov Models [HMMs]
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/18Speech classification or search using natural language modelling
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L17/00Speaker identification or verification techniques
    • G10L17/22Interactive procedures; Man-machine interfaces
    • G10L17/24Interactive procedures; Man-machine interfaces the user being prompted to utter a password or a predefined phrase
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/18Speech classification or search using natural language modelling
    • G10L15/1822Parsing for meaning understanding
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/225Feedback of the input speech
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/226Procedures used during a speech recognition process, e.g. man-machine dialogue using non-speech characteristics
    • G10L2015/228Procedures used during a speech recognition process, e.g. man-machine dialogue using non-speech characteristics of application context

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Computational Linguistics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Probability & Statistics with Applications (AREA)
  • Artificial Intelligence (AREA)
  • Telephonic Communication Services (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

An electronic device of the present disclosure comprises: a memory including a plurality of databases classified according to a predicate; a communication circuit receiving voice data corresponding to a voice command from an external device; and a processor operatively coupled with the memory and the communication circuit. The processor identifies a type of predicate included in the voice data, and based on information included in a database corresponding to the identified predicate, determines at least one device for performing the voice command a function to be performed by the at least one device according to the voice command, and controls the function to be performed according to the voice command in the at least one device.

Description

전자 장치, 및 그의 음성 명령에 따른 기능이 실행되도록 제어하는 방법{ELECTRONIC APPARATUS, AND METHOD OF CONTROLLING TO EXECUTE FUNCTION ACCORDING TO VOICE COMMAND THEREOF}Electronic device, and a method of controlling to execute a function according to its voice command TECHNICAL FIELD [ELECTRONIC APPARATUS, AND METHOD OF CONTROLLING TO EXECUTE FUNCTION ACCORDING TO VOICE COMMAND THEREOF}

본 개시는 전자 장치, 및 상기 전자 장치가 사용자가 발화한 음성 명령에 따른 기능이 실행되도록 적어도 하나의 장치를 제어하는 방법에 관한 것이다.The present disclosure relates to an electronic device and a method of controlling at least one device such that the electronic device executes a function according to a voice command uttered by a user.

사용자가 발화한 음성 명령을 인식하는 전자 장치의 사용이 점차 늘어나고 있다. 음성 명령을 인식하는 전자 장치는 PC, 이동 통신기기뿐만 아니라 디지털 TV, 에어컨, 홈시어터 등과 같은 가전기기에서도 적극적으로 사용되는 추세이다.The use of electronic devices that recognize voice commands uttered by users is gradually increasing. Electronic devices that recognize voice commands are being actively used not only in PCs and mobile communication devices, but also in home appliances such as digital TVs, air conditioners and home theaters.

전자 장치가 음성 명령을 정확하게 인식하기 위해서는 사용자가 음성 명령을 명확하게 발화할 필요가 있다. 예로, 사용자의 음성 명령에 사용자가 실행을 원하는 전자 장치, 상기 전자 장치가 실행할 액션, 상기 전자 장치의 실행 대상이 명확하게 기재되는 경우, 전자 장치는 사용자의 음성 명령을 더 잘 인식하여, 음성 명령에 따른 기능을 수행할 수 있다.In order for the electronic device to accurately recognize the voice command, the user needs to clearly utter the voice command. For example, if the electronic device that the user wants to execute, the action to be executed by the electronic device, and the execution target of the electronic device are clearly described in the user's voice command, the electronic device better recognizes the user's voice command and Can perform the function according to.

한편, 음성 명령의 인식을 위한 과정으로, 음성 명령을 음성 데이터로 전처리하고, 전처리된 음성 데이터를 분석하기 위해서는 많은 양의 리소스가 요구될 수 있다. 이에, 음성 데이터를 서버로 전송하여 음성을 인식하거나, 음성 인식 과정의 일부를 다른 장치와 분배하여 음성을 인식하는 방식이 고려되고 있다.Meanwhile, as a process for recognizing a voice command, a large amount of resources may be required to pre-process the voice command as voice data and to analyze the pre-processed voice data. Accordingly, a method of recognizing voice by transmitting voice data to a server or distributing a part of the voice recognition process with other devices to recognize voice is considered.

본 개시는 음성 명령에 따른 전자 장치의 기능을 실행하기 위한 방법에 관한 것으로, 사용자가 발화한 음성 명령을 잘 인식하여 음성 명령에 따라 전자 장치가 수행할 기능을 결정하는 것에 목적이 있다. 또한, 본 개시는 통신 연결된 전자 장치들 각각의 리소스를 활용하여 사용자가 발화한 음성 명령을 보다 신속하고 정확하게 인식하는 것에 목적이 있다.The present disclosure relates to a method for executing a function of an electronic device according to a voice command, and an object of the present disclosure is to determine a function to be performed by the electronic device according to the voice command by recognizing a voice command uttered by a user well. In addition, an object of the present disclosure is to more quickly and accurately recognize a voice command uttered by a user by using resources of each of electronic devices connected to communication.

본 개시에 따른 전자 장치는, 서술어에 따라 구분된 복수 개의 데이터베이스들을 포함하는 메모리, 외부 장치로부터 음성 명령에 대응하는 음성 데이터를 수신하는 통신 회로, 및 상기 메모리 및 상기 통신 회로와 동작 가능하게 연결된 프로세서를 포함한다. 상기 프로세서는, 상기 음성 데이터에 포함된 서술어의 종류를 식별하고, 상기 식별된 서술어에 대응되는 데이터베이스에 포함된 정보에 기반하여, 상기 음성 명령을 실행할 적어도 하나의 장치 및 상기 음성 명령에 따라 상기 적어도 하나의 장치가 수행할 기능을 결정하고, 상기 적어도 하나의 장치에서 상기 음성 명령에 따른 기능이 실행되도록 제어한다.An electronic device according to the present disclosure includes a memory including a plurality of databases classified according to a predicate, a communication circuit for receiving voice data corresponding to a voice command from an external device, and a processor operably connected to the memory and the communication circuit Includes. The processor identifies a type of a predicate included in the voice data, and based on information included in a database corresponding to the identified predicate, at least one device to execute the voice command and the at least one device according to the voice command A function to be performed by one device is determined, and a function according to the voice command is executed in the at least one device.

본 개시에 따른 전자 장치의 제어 방법은, 음성 명령에 대응되는 음성 데이터를 수신하는 동작, 상기 음성 데이터에 포함된 서술어의 종류를 식별하는 동작, 상기 서술어에 대응되는 데이터베이스에 포함된 정보에 기반하여, 상기 음성 명령을 실행할 적어도 하나의 장치 및 상기 음성 명령에 따라 상기 적어도 하나의 장치가 수행할 기능을 결정하는 동작; 및 상기 적어도 하나의 장치에서 상기 음성 명령에 따른 기능이 실행되도록 제어하는 동작을 포함한다.The method of controlling an electronic device according to the present disclosure includes an operation of receiving voice data corresponding to a voice command, an operation of identifying a type of a predicate included in the voice data, and information included in a database corresponding to the predicate. Determining at least one device to execute the voice command and a function to be performed by the at least one device according to the voice command; And controlling the at least one device to execute a function according to the voice command.

본 개시에 따르면, 사용자는 정확한 음성 명령을 발화하지 않고서도, 일반적인 구어체로 대화하는 듯한 음성 명령으로 전자 장치의 기능의 실행시킬 수 있다.According to the present disclosure, a user can execute a function of an electronic device with a voice command that looks like a conversation in a general colloquial language without uttering an accurate voice command.

예로, 로봇 청소기의 기능을 실행시키고 싶을 때, 사용자는 "로봇 청소기야 청소해줘" 라고 발화하기 보다는 주어를 생략하고 "청소해줘"라고 간결하게 발화하여 로봇 청소기의 기능을 실행시킬 수 있다. 또는, 사용자는 형용사를 이용하여 "지저분하네"라고 발화하여 로봇 청소기의 기능을 실행시킬 수 있다. For example, when a user wants to execute the function of the robot cleaner, the user can execute the function of the robot cleaner by omitting the subject and concisely saying “clean,” rather than uttering “Clean the robot cleaner”. Alternatively, the user may execute the function of the robot cleaner by uttering "It is messy" using an adjective.

다른 예로, 에어컨의 기능을 실행시키고 싶을 때, 사용자는 "에어컨아 방의 온도를 높여줘" 라고 발화하기 보다는 형용사를 이용하여 "추워"라고 발화하여 에어컨의 기능을 실행시킬 수 있다. As another example, when the user wants to execute the function of the air conditioner, the user can execute the function of the air conditioner by igniting "it is cold" using an adjective rather than igniting "Raise the temperature of the air conditioner room".

본 개시에 따르면, 사용자가 서술어의 일부를 생략하고 음성 명령을 발화하여도, 전자 장치는 생략된 서술어를 데이터베이스에 포함된 정보로부터 추정하여 정확한 음성 인식을 제공할 수 있다. 특히, 기능을 수행할 주체가 여러 개인 경우에, 전자 장치는 사용자의 의도를 반영한 특정 장치를 대상으로 음성 명령에 따른 기능이 수행되도록 제어할 수 있다. According to the present disclosure, even if a user omits part of a predicate and utters a voice command, the electronic device may estimate the omitted predicate from information included in a database to provide accurate voice recognition. In particular, when there are multiple subjects to perform a function, the electronic device may control a specific device that reflects a user's intention to perform a function according to a voice command.

도 1은 본 개시의 일 실시예에 따른 음성 인식 시스템을 나타내는 도면이다.
도 2는 본 개시의 일 실시예에 따른 전자 장치의 블록도이다.
도 3 및 도 4는 본 개시의 일 실시예에 따른 서술어 데이터베이스들을 나타내는 도면이다.
도 5는 본 개시의 일 실시예에 따른 매크로 데이터베이스를 나타내는 도면이다.
도 6은 본 개시의 일 실시예에 따른 전자 장치의 흐름도이다.
도 7은 본 개시의 다른 실시예에 따른 전자 장치의 흐름도이다.
도 8은 본 개시의 일 실시예에 따른 음성 인식 시스템의 흐름도이다.
도 9는 본 개시의 일 실시예에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
1 is a diagram illustrating a speech recognition system according to an embodiment of the present disclosure.
2 is a block diagram of an electronic device according to an embodiment of the present disclosure.
3 and 4 are diagrams illustrating predicate databases according to an embodiment of the present disclosure.
5 is a diagram illustrating a macro database according to an embodiment of the present disclosure.
6 is a flowchart of an electronic device according to an embodiment of the present disclosure.
7 is a flowchart of an electronic device according to another exemplary embodiment of the present disclosure.
8 is a flowchart of a speech recognition system according to an embodiment of the present disclosure.
9 is a block diagram of an electronic device in a network environment according to an embodiment of the present disclosure.

본 개시의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. Various embodiments of the present disclosure and terms used therein 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 corresponding embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or a plurality of the items unless clearly indicated otherwise in a related context.

본 개시에서, "A 또는 B", "A 및 B 중 적어도 하나","A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", "A 및/또는 B", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.In the present disclosure, “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”, “A and Each of the phrases such as "B" and "at least one of A, B, or C" may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish the component from other corresponding components, and the components may be referred to in other aspects (eg, importance or Order) is not limited. Some (eg, a first) component is referred to as “coupled” or “connected” with or without the terms “functionally” or “communicatively” to another (eg, second) component. When mentioned, it means that any of the above components can be connected to the other components directly (eg by wire), wirelessly, or via a third component.

본 개시에서, 서술어(또는, 용언(用言))는 움직임, 상태, 성질을 서술하는 말로서, 동사 및 형용사를 포함할 수 있다. 동사는 사람이나 사물의 움직임 또는 과정을 나타내는 단어이며, 형용사는 사람이나 사물의 상태나 성질을 나타내는 단어일 수 있다. 또한, 본 개시에서, 형태소는 뜻을 가진 말의 단위로서, 전술한 서술어가 될 수 있는 동사 및 형용사를 포함하여, 목적어 또는 주어가 될 수 있는 명사 등을 더 포함할 수 있다. In the present disclosure, a predicate (or a verb) is a word describing a motion, a state, and a property, and may include a verb and an adjective. Verbs are words that represent the movement or process of people or things, and adjectives can be words that represent the state or nature of people or things. In addition, in the present disclosure, a morpheme is a unit of speech having a meaning, and may further include a noun that may be an object or a subject, including verbs and adjectives that may be the aforementioned predicates.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 관하여 상세히 설명한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 개시의 일 실시예에 따른 음성 인식 시스템을 나타낸다.1 shows a speech recognition system according to an embodiment of the present disclosure.

도 1에서, 음성 인식 시스템(1)은 음성 취득 장치(또는, Dot 장치)(100), 음성 분석 장치들(또는, Edge 장치들)(200, 201, 202) 및 음성 실행 장치(또는, 음성 명령 실행 장치, Thing 장치)(300)를 포함할 수 있다.In FIG. 1, the speech recognition system 1 includes a speech acquisition device (or a dot device) 100, a speech analysis device (or edge devices) 200, 201, 202, and a speech execution device (or a voice device). An instruction execution device, a Thing device) 300 may be included.

음성 취득 장치(100), 음성 분석 장치들(200) 및 음성 실행 장치(300)는 다양한 종류의 전자 장치가 될 수 있다. 다양한 종류의 전자 장치는, 스마트 폰 등과 같은 휴대용 전자 장치, 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있으나, 전술한 기기들에 한정되지 않는다. The voice acquisition device 100, the voice analysis devices 200, and the voice execution device 300 may be various types of electronic devices. Various types of electronic devices may include portable electronic devices such as smart phones, computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances, but are not limited to the above-described devices.

한편, 음성 취득 장치(100), 음성 분석 장치(200) 및 음성 실행 장치(300)와 같은 장치의 명칭은 설명의 편의를 위하여 각 장치들에서 수행되는 여러 기능들 중에서 일 기능으로부터 정의된 용어이며, 실시예들에 따라 음성 취득 장치(100)가 음성 분석 기능 및/또는 음성 실행 기능을 수행할 수도 있고, 음성 분석 장치(200)가 음성 전처리 및/또는 음성 실행 기능을 수행할 수도 있고, 음성 실행 장치(300)가 음성 전처리 기능 및/또는 음성 실행 기능을 수행할 수도 있다. 일 실시예로, 음성 분석 장치(200)는 음성 분석을 위하여 음성 취득 장치(100) 및/또는 음성 실행 장치(300) 보다 더 풍부한 리소스를 가지고 있을 수 있다. 예로, 음성 분석 장치(200)는 음성의 인식에 필요한 룰(rule) 기반 모델 및/또는 인공 신경망 기반 모델을 포함할 수도 있다. 인공 신경망 모델의 생성, 업데이트 또는 추론 과정에 이용되는 신경망으로는 CNN(Convolutional Neural Network), DNN (Deep Neural Network), RNN (Recurrent Neural Network), RBM (Restricted Boltzmann Machine), DBN (Deep Belief Network), BRDNN(Bidirectional Recurrent Deep Neural Network) 또는 심층 Q-네트워크 (Deep Q-Networks) 등이 있을 수 있으나 전술한 예에 제한되는 것은 아니다. 이러한 인공 신경망 모델은 소프트웨어 형태로 음성 분석 장치(200)의 메모리 또는 음성 분석 장치(200)와 통신 가능한 외부 장치에 저장되어 있을 수도 있고, 또는 온 디바이스 인공 지능 칩으로 집적되어 음성 분석 장치(200)의 프로세서의 일부가 될 수도 있다.Meanwhile, the names of devices such as the voice acquisition device 100, the voice analysis device 200, and the voice execution device 300 are terms defined from one function among various functions performed by each device for convenience of description. , According to embodiments, the voice acquisition device 100 may perform a voice analysis function and/or a voice execution function, the voice analysis device 200 may perform a voice preprocessing and/or a voice execution function, and The execution device 300 may perform a voice preprocessing function and/or a voice execution function. In an embodiment, the speech analysis apparatus 200 may have more abundant resources than the speech acquisition apparatus 100 and/or the speech execution apparatus 300 for speech analysis. For example, the speech analysis apparatus 200 may include a rule-based model and/or an artificial neural network-based model required for speech recognition. Neural networks used in the creation, update, or inference process of artificial neural network models are CNN (Convolutional Neural Network), DNN (Deep Neural Network), RNN (Recurrent Neural Network), RBM (Restricted Boltzmann Machine), DBN (Deep Belief Network). , BRDNN (Bidirectional Recurrent Deep Neural Network) or Deep Q-Networks, etc. may be provided, but are not limited to the above-described example. Such an artificial neural network model may be stored in the memory of the speech analysis apparatus 200 or in an external device capable of communicating with the speech analysis apparatus 200 in the form of software, or integrated into an on-device artificial intelligence chip and the speech analysis apparatus 200 It could be part of the processor.

음성 취득 장치(100)는 사용자가 발화한 음성 명령을 입력 받아 전기적인 음성 신호로 변환할 수 있다. 이를 위하여, 음성 취득 장치(100)는 마이크로 폰을 포함할 수 있다. 변환된 음성신호는 PCM(pulse code modulation) 상태 또는 압축된 형태의 오디오 파형의 형태를 가진다. 음성 취득 장치(100)는 사용자의 음성 신호를 디지털로 변환하는 A/D 변환부를 더 포함할 수 있다. 한편, 음성 취득 장치(100)가 디지털 마이크로 폰을 포함하는 경우, 음성 취득 장치(100)는 별도의 A/D 변환부를 포함하지 않을 수 있다. 다양한 실시예로, 음성 취득 장치(100)는 마이크 송신기, 리모트 컨트롤러, 휴대폰 등이 될 수 있으나, 전술한 예에 제한되지 않는다.The voice acquisition device 100 may receive a voice command uttered by a user and convert it into an electrical voice signal. To this end, the voice acquisition device 100 may include a microphone. The converted voice signal has a PCM (pulse code modulation) state or a compressed form of an audio waveform. The voice acquisition apparatus 100 may further include an A/D conversion unit for digitally converting a user's voice signal. On the other hand, when the audio acquisition device 100 includes a digital microphone, the audio acquisition device 100 may not include a separate A/D conversion unit. In various embodiments, the voice acquisition device 100 may be a microphone transmitter, a remote controller, a mobile phone, or the like, but is not limited to the above-described example.

음성 취득 장치(100)는 음성 전처리 기능을 수행할 수 있다. 예로, 음성 취득 장치(100)는 자연어 이해 모듈을 이용하여 디지털 변환된 음성 데이터를 문법적(syntactic) 단위(예: 단어, 구 또는 형태소 등)로 나누고, 나누어진 단위가 어떤 문법적인 요소를 갖는지 파악할 수 있다. 다양한 실시예로, 음성 취득 장치(100)의 음성 전처리 기능은 복수 개의 음성 분석 장치들(200, 201, 202) 중 적어도 하나에서 수행될 수도 있다.The voice acquisition device 100 may perform a voice preprocessing function. For example, the voice acquisition device 100 divides the digitally converted voice data into syntactic units (eg, words, phrases, morphemes, etc.) using a natural language understanding module, and determines which grammatical element the divided units have. I can. In various embodiments, the voice preprocessing function of the voice acquisition device 100 may be performed by at least one of the plurality of voice analysis devices 200, 201, and 202.

음성 데이터가 문법적 요소에 따라 구분되면, 음성 취득 장치(100)는 문법적인 요소를 갖는 전처리된 음성 데이터를 복수 개의 음성 분석 장치들(200, 201, 202) 중 적어도 하나로 전송할 수 있다. 이 경우, 음성 취득 장치(100)는 특정 조건에 기반하여 복수 개의 음성 분석 장치들(200, 201, 202) 중 전처리된 음성 데이터를 전송할 적어도 하나의 음성 분석 장치를 선택할 수 있다. 예로, 음성 취득 장치(100)는 복수 개의 음성 분석 장치들(200, 201, 202) 중에서 거리가 가장 가깝거나, 통신 상태가 가장 좋거나, 기 통신 채널이 형성되었거나, 사용자 또는 제조사에 의하여 음성 분석 대상으로 기 설정된 음성 분석 장치를 우선하여 선택할 수 있다. 본 개시에서는 설명의 편의를 위하여 복수 개의 음성 분석 장치들(200, 201, 202) 중에서 일 음성 분석 장치(200)가 선택된 것을 가정한다.When the voice data is classified according to the grammatical element, the voice acquisition device 100 may transmit the preprocessed voice data having the grammatical element to at least one of the plurality of voice analysis devices 200, 201, and 202. In this case, the voice acquisition device 100 may select at least one voice analysis device to transmit the pre-processed voice data from among the plurality of voice analysis devices 200, 201, and 202 based on a specific condition. For example, the voice acquisition device 100 has the closest distance, the best communication state, or established a communication channel among a plurality of voice analysis devices 200, 201, 202, or analyzes the voice by a user or a manufacturer. The voice analysis device set as the target can be prioritized. In the present disclosure, it is assumed that one voice analysis device 200 is selected from among a plurality of voice analysis devices 200, 201, and 202 for convenience of description.

문법적인 요소를 갖는 전처리된 음성 데이터를 수신한 음성 분석 장치(200)는 획득된 음성 데이터를 분석하여 사용자가 발화한 음성 명령에 대응되는 서비스를 결정할 수 있다. Having received the preprocessed voice data having a grammatical element, the voice analysis apparatus 200 may analyze the obtained voice data to determine a service corresponding to the voice command uttered by the user.

다양한 실시예로, 음성 분석 장치(200)는 음성 취득 장치(100)로부터 획득된 음성 데이터에 대하여 전처리 기능을 수행하고, 문법적인 요소를 갖는 전처리된 음성 데이터를 분석하여 사용자가 발화한 음성 명령에 대응되는 서비스를 결정할 수도 있다. In various embodiments, the speech analysis apparatus 200 performs a pre-processing function on speech data obtained from the speech acquisition apparatus 100, analyzes preprocessed speech data having grammatical elements, and responds to speech commands uttered by the user. It is also possible to determine the corresponding service.

다양한 실시예로, 음성 분석 장치(200)는 자신의 리소스 상태를 고려하여 자신이 음성 데이터를 분석할 지 여부를 결정할 수도 있다. 예로, 음성 분석 장치(200)는 음성 데이터의 분석 가능 여부, 음성 데이터의 분석 시간 등을 고려하여, 자신의 리소스 상태가 음성 데이터를 분석하기에 적절한지를 판단할 수 있다. 자신의 리소스 상태가 음성 데이터를 분석하기에 적합하지 않은 경우, 음성 분석 장치(200)는 음성 취득 장치(100)로부터 획득된 음성 데이터를 다른 음성 분석 장치들(201, 202) 중 적어도 하나로 전달하여, 음성 데이터를 전달 받은 적어도 하나의 음성 분석 장치가 음성 데이터를 분석하도록 제어할 수 있다. In various embodiments, the voice analysis apparatus 200 may determine whether to analyze the voice data by considering its own resource state. For example, the voice analysis apparatus 200 may determine whether its own resource state is appropriate for analyzing the voice data, taking into account whether the voice data can be analyzed and the analysis time of the voice data. When its own resource state is not suitable for analyzing the voice data, the voice analysis device 200 transmits the voice data obtained from the voice acquisition device 100 to at least one of the other voice analysis devices 201 and 202 , At least one voice analysis device receiving the voice data may be controlled to analyze the voice data.

음성 분석 장치(200)가 음성 데이터에 대한 분석을 수행하는 경우, 음성 분석 장치(200)는 음성 데이터에 포함된 서술어의 종류를 식별하고, 식별된 서술어에 대응되는 데이터베이스(Database, DB)에 포함된 정보를 획득할 수 있다. When the speech analysis apparatus 200 analyzes the speech data, the speech analysis apparatus 200 identifies the type of a predicate included in the speech data and includes it in a database (DB) corresponding to the identified predicate. Information can be obtained.

음성 분석 장치(200)는 음성 분석에 필요한 적어도 하나의 데이터베이스를 포함하는 메모리를 구비할 수 있다. 적어도 하나의 데이터베이스는, 예로, 서술어에 따라 구분될 수 있다. 예로, 적어도 하나의 데이터베이스는, 형용사 데이터베이스, 동사 데이터베이스, 매크로 데이터베이스 중 적어도 하나를 포함할 수 있다. 형용사 데이터베이스, 동사 데이터베이스, 매크로 데이터베이스의 구체적인 예는 이하 상세히 후술될 예정이다.The speech analysis apparatus 200 may include a memory including at least one database required for speech analysis. At least one database may be classified according to, for example, a predicate. For example, the at least one database may include at least one of an adjective database, a verb database, and a macro database. Specific examples of the adjective database, verb database, and macro database will be described in detail later.

일 실시예에 따르면, 복수 개의 음성 분석 장치들(200, 201, 202) 각각이 형용사 데이터베이스, 동사 데이터베이스 및 매크로 데이터베이스를 모두 포함할 수도 있고, 복수 개의 음성 분석 장치들(200, 201, 202) 각각이 서로 분배하여 형용사 데이터베이스, 동사 데이터베이스 또는 매크로 데이터베이스 중 적어도 하나를 각각 포함할 수도 있다. 예로, 제1 음성 분석 장치(200)는 형용사 데이터베이스, 제2 음성 분석 장치(201)는 동사 데이터베이스, 제3 음성 분석 장치(202)는 매크로 데이터베이스를 각각 포함할 수 있다. According to an embodiment, each of the plurality of speech analysis devices 200, 201, 202 may include all of an adjective database, a verb database, and a macro database, and each of the plurality of speech analysis devices 200, 201, 202 They may be distributed to each other to include at least one of an adjective database, a verb database, and a macro database, respectively. For example, the first voice analysis apparatus 200 may include an adjective database, the second voice analysis apparatus 201 may include a verb database, and the third voice analysis apparatus 202 may include a macro database.

다양한 실시예로, 음성 데이터에 포함된 서술어에 대응되는 정보가 데이터베이스에 존재하지 않는 경우, 음성 분석 장치(200)는 음성 데이터에 포함된 서술어를 외부 서버(400)로 전송할 수 있다. 외부 서버(400)는 외부 서버(400)에 저장된 서술어 별 데이터베이스로부터 수신된 서술어에 대응되는 정보를 검색할 수 있다. 외부 서버(400)는 검색된 서술어에 대응되는 정보를 음성 분석 장치(200)로 전송할 수 있다. 외부 서버(400)는, 일 예로, 클라우드 서버를 포함할 수 있다. 통상적으로 클라우드 서버는 인터넷 환경에서 떠다니는 구름처럼 고정된 하드웨어에 구애 받지 않고 소프트웨어 환경을 이용해서 자료를 등록하고, 등록된 자료를 이용하는 저장 방식으로 이용될 수 있다. 클라우드의 서비스 종류에는 여러 가지가 있을 수 있다. 예로, 서비스 특징에 따라 SaaS(Software as a Service), PaaS(Platform as a Service), HaaS(Hardware as a Service), IaaS(Infrastructure as a Service) 등으로 구분될 수 있는데, 제공 업체에 따라 조금씩 차이가 있을 뿐 개념상 동일하다.In various embodiments, when information corresponding to a predicate included in the voice data does not exist in the database, the voice analysis apparatus 200 may transmit the predicate included in the voice data to the external server 400. The external server 400 may search for information corresponding to a predicate received from a database for each predicate stored in the external server 400. The external server 400 may transmit information corresponding to the searched predicate to the speech analysis apparatus 200. The external server 400 may include, for example, a cloud server. In general, a cloud server can be used as a storage method using a software environment to register data and use the registered data regardless of fixed hardware like a floating cloud in an Internet environment. There can be several types of cloud services. For example, it can be classified into SaaS (Software as a Service), PaaS (Platform as a Service), HaaS (Hardware as a Service), IaaS (Infrastructure as a Service), etc., depending on the service characteristics. It is conceptually the same as there is.

음성 분석 장치(200)는 음성 분석 장치(200)의 데이터베이스로부터 검색된 정보 또는 외부 서버로부터 수신된 정보에 기반하여, 음성 명령을 실행할 적어도 하나의 장치 및 음성 명령에 따라 적어도 하나의 장치가 수행할 기능을 결정할 수 있다. 예로, 음성 분석 장치(200)는 데이터베이스에 포함된 서술어에 대응되는 장치에 관한 정보에 기반하여, 음성 분석 장치(200) 자신을 음성 명령을 실행할 장치로 결정하거나, 또는 음성 실행 장치(300)를 음성 명령을 실행할 장치로 결정할 수 있다.The speech analysis apparatus 200 is based on information retrieved from the database of the speech analysis apparatus 200 or information received from an external server, at least one device to execute a voice command and a function to be performed by at least one device according to the voice command Can be determined. For example, the speech analysis device 200 may determine the speech analysis device 200 itself as a device to execute a voice command or determine the voice execution device 300 based on information on a device corresponding to a predicate included in the database. You can decide which device to execute the voice command.

다양한 실시예로, 음성 분석 장치(200)는 데이터베이스에 식별된 서술어에 대응되는 정보가 존재하지 않는 경우, 음성 데이터를 다른 음성 분석 장치들(201, 201) 중 적어도 하나로 전달하여, 음성 데이터를 전달 받은 적어도 하나의 음성 분석 장치가 음성 데이터를 분석하도록 제어할 수 있다. 또는, 음성 분석 장치(200)는 데이터베이스에 식별된 서술어에 대응되는 정보가 존재하지 않는 경우, 데이터베이스를 업데이트할 수 있다. 예로, 음성 분석 장치(200)는 다른 음성 분석 장치들(201, 202)에게 데이터베이스에 포함된 정보를 요청 및 획득하여, 음성 분석 장치(200)의 데이터베이스를 업데이트할 수 있다. 즉, 음성 분석 장치(200)는 자신의 데이터베이스를 다른 음성 분석 장치들(201, 202)의 데이터베이스와 동기화할 수 있다. In various embodiments, when information corresponding to the identified predicate does not exist in the database, the voice analysis device 200 transfers the voice data to at least one of the other voice analysis devices 201 and 201 to deliver the voice data. It is possible to control the received at least one voice analysis device to analyze the voice data. Alternatively, the speech analysis apparatus 200 may update the database when information corresponding to the identified predicate does not exist in the database. For example, the speech analysis apparatus 200 may request and obtain information included in the database from other speech analysis apparatuses 201 and 202, and update the database of the speech analysis apparatus 200. That is, the voice analysis apparatus 200 may synchronize its own database with databases of other voice analysis apparatuses 201 and 202.

음성 명령을 실행할 적어도 하나의 장치 및 음성 명령에 따라 적어도 하나의 장치가 수행할 기능이 결정되면, 음성 분석 장치(200)는 음성 명령을 실행할 적어도 하나의 장치에서 음성 명령에 따른 기능이 실행되도록 제어할 수 있다. 일 실시예로, 음성 분석 장치(200) 자신이 음성 명령을 실행할 장치로 결정되는 경우, 데이터베이스에 포함된 서술어에 대응되는 액션에 관한 정보에 기반하여, 음성 명령에 따른 기능을 실행할 수 있다. 다른 실시예로, 음성 분석 장치(200)는 음성 명령을 실행할 장치가 음성 실행 장치(300)로 식별되는 경우, 데이터베이스로부터 획득된 액션에 관한 정보를 음성 실행 장치(300)에게 전송할 수 있다.When at least one device to execute the voice command and the function to be performed by the at least one device are determined according to the voice command, the voice analysis device 200 controls the function according to the voice command to be executed in at least one device to execute the voice command. can do. In an embodiment, when the voice analysis device 200 itself is determined as a device to execute a voice command, a function according to the voice command may be executed based on information about an action corresponding to a predicate included in a database. In another embodiment, when a device to execute a voice command is identified as the voice execution device 300, the voice analysis device 200 may transmit information about an action acquired from a database to the voice execution device 300.

음성 분석 장치(200) 또는 음성 실행 장치(300)에서 음성 명령에 따른 기능이 실행되면, 음성 분석 장치(200) 또는 음성 실행 장치(300)는 음성 명령에 따른 기능이 실행되었거나 또는 실행 중인 것을 나타내는 음성 명령 피드백을 사용자에게 제공할 수 있다. 예로, 음성 분석 장치(200) 또는 음성 실행 장치(300)는 음성 명령 피드백에 관한 정보를 음성 취득 장치(100)에게 전송할 수 있다. 음성 명령 피드백에 관한 정보에 기반하여, 음성 취득 장치(100)는 음성 명령 피드백을 사용자에게 제공할 수 있다. 음성 명령 피드백은, 예로, 시각적 피드백, 청각적 피드백 또는 촉각적 피드백이 될 수 있다. When the function according to the voice command is executed in the voice analysis device 200 or the voice execution device 300, the voice analysis device 200 or the voice execution device 300 indicates that the function according to the voice command has been executed or is being executed. Voice command feedback can be provided to the user. For example, the voice analysis device 200 or the voice execution device 300 may transmit information about voice command feedback to the voice acquisition device 100. Based on the information on the voice command feedback, the voice acquisition device 100 may provide the voice command feedback to the user. Voice command feedback may be, for example, visual feedback, auditory feedback, or tactile feedback.

사용자는 음성 명령 피드백에 응답하여, 사용자 피드백을 제공할 수 있다. 사용자는 음성 명령으로서 사용자 피드백을 제공하거나, 음성 취득 장치(100) 또는 음성 분석 장치(200)가 제공하는 화면을 통하여 사용자 피드백을 제공할 수 있다. 음성 분석 장치(200)는 제공 받은 사용자 피드백에 관한 정보에 기반하여, 서술어에 따라 구분된 복수 개의 데이터베이스를 업데이트할 수 있다.The user may provide user feedback in response to the voice command feedback. The user may provide user feedback as a voice command, or may provide user feedback through a screen provided by the voice acquisition device 100 or the voice analysis device 200. The speech analysis apparatus 200 may update a plurality of databases classified according to a predicate based on information about the provided user feedback.

도 2는 본 개시의 일 실시예에 따른 전자 장치의 블록도이다.2 is a block diagram of an electronic device according to an embodiment of the present disclosure.

도 2의 전자 장치(500)의 구성은, 도 1의 음성 취득 장치(100), 음성 분석 장치(200) 또는 음성 실행 장치(300)의 구성에 대응될 수 있으나, 본 개시에서는 음성 분석 장치(200)를 대상으로 주로 설명한다.The configuration of the electronic device 500 of FIG. 2 may correspond to the configuration of the voice acquisition device 100, the voice analysis device 200, or the voice execution device 300 of FIG. 1, but in the present disclosure, the voice analysis device ( 200).

전자 장치(500)는 통신 회로(510), 프로세서(520) 및 메모리(530)를 포함할 수 있다. 전자 장치(500)는 후술할 도 9의 전자 장치(900)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다. The electronic device 500 may include a communication circuit 510, a processor 520, and a memory 530. The electronic device 500 may include at least some of the configuration and/or functions of the electronic device 900 of FIG. 9 to be described later.

통신 회로(510)는 다양한 방식의 통신을 지원하기 위한 유선 통신 모듈 및/또는 무선 통신 모듈을 포함할 수 있다. 통신 회로(510)는 후술할 도 9의 통신 모듈(990)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다. 통신 회로(510)는 프로세서(520)의 제어에 의하여 외부 장치(예로, 도 1의 음성 취득 장치(100))로부터 음성 데이터를 수신하여, 프로세서(520)로 전달할 수 있다. 또한, 통신 회로(510)는 프로세서(520)의 제어에 의하여 외부 서버 또는 다른 전자 장치(예로, 도 1의 음성 분석 장치(201, 202))로 정보를 전송할 수 있다. 예로, 통신 회로(510)는 음성 데이터, 데이터베이스에 관한 정보를 외부 서버 또는 다른 전자 장치에게 전송할 수 있다.The communication circuit 510 may include a wired communication module and/or a wireless communication module for supporting various types of communication. The communication circuit 510 may include at least some of the configuration and/or functions of the communication module 990 of FIG. 9 to be described later. The communication circuit 510 may receive voice data from an external device (eg, the voice acquisition device 100 of FIG. 1) under the control of the processor 520 and transmit the voice data to the processor 520. Further, the communication circuit 510 may transmit information to an external server or another electronic device (eg, the voice analysis devices 201 and 202 of FIG. 1) under the control of the processor 520. For example, the communication circuit 510 may transmit voice data and information on a database to an external server or other electronic device.

메모리(530)는 휘발성 메모리(volatile memory) 및/또는 비휘발성 메모리(non-volatile memory)를 포함할 수 있다. 메모리(530)는 후술할 도 9의 메모리(530)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다. 메모리(530)는 작동적으로(operatively) 및/또는 전기적으로(electrically) 프로세서(520)와 연결되고, 프로세서(520)에서 수행될 수 있는 다양한 인스트럭션(instruction)들을 저장할 수 있다. 이와 같은 인스트럭션들은 프로세서(520)에 의해 인식될 수 있는 산술 및 논리 연산, 데이터 이동, 입출력과 같은 제어 명령을 포함할 수 있다. 또한, 메모리(530)는 데이터베이스를 저장할 수 있다. 데이터베이스는 서술어 별로 구분된 데이터베이스로서 동사 데이터베이스 및/또는 형용사 데이터베이스를 포함할 수 있다. 또한, 데이터베이스는 매크로 데이터베이스를 포함할 수 있다.The memory 530 may include a volatile memory and/or a non-volatile memory. The memory 530 may include at least some of the configuration and/or functions of the memory 530 of FIG. 9 to be described later. The memory 530 may be operatively and/or electrically connected to the processor 520 and may store various instructions that may be executed by the processor 520. Such instructions may include arithmetic and logical operations that can be recognized by the processor 520, data movement, and control instructions such as input/output. Also, the memory 530 may store a database. The database is a database classified for each predicate and may include a verb database and/or an adjective database. Also, the database may include a macro database.

프로세서(520)는 전자 장치(500)의 각 구성요소들의 제어 및/또는 통신에 관한 연산이나 데이터 처리를 수행할 수 있는 구성으로써, 후술할 도 9의 프로세서(520)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다. 프로세서(520)는 통신 회로(510), 메모리(530)와 같은 전자 장치(500)의 내부 구성요소와 작동적으로 및/또는 전기적으로 연결될 수 있다.The processor 520 is a configuration capable of performing an operation or data processing related to control and/or communication of each component of the electronic device 500, and among the configuration and/or functions of the processor 520 of FIG. 9 to be described later It may include at least some. The processor 520 may be operatively and/or electrically connected to internal components of the electronic device 500 such as the communication circuit 510 and the memory 530.

프로세서(520)가 전자 장치(500) 내에서 구현할 수 있는 연산 및 데이터 처리 기능에는 한정됨이 없을 것이나, 본 개시에서, 프로세서(520)는 메모리(530)에 저장된 인스트럭션들을 로딩함으로써 후술할 실시예들을 수행할 수 있다.There will be no limit to the operation and data processing functions that the processor 520 can implement in the electronic device 500, but in the present disclosure, the processor 520 loads instructions stored in the memory 530 to describe embodiments to be described later. Can be done.

다양한 실시예에 따르면, 외부 장치(예: 도 1의 음성 취득 장치(100))로부터 음성 명령에 대응하는 음성 데이터가 수신되면, 프로세서(520)는, 수신된 음성 데이터에 포함된 서술어의 종류를 식별할 수 있다. 이때, 프로세서(520)는 음성 명령이 매크로로 기 설정된 경우, 기 설정된 매크로에 대응되는 처리 음성 데이터를 획득하고, 처리 음성 데이터에 포함된 서술어의 종류를 식별할 수 있다.According to various embodiments, when voice data corresponding to a voice command is received from an external device (for example, the voice acquisition device 100 of FIG. 1 ), the processor 520 determines the type of a predicate included in the received voice data. Can be identified. In this case, when the voice command is preset as a macro, the processor 520 may acquire processed voice data corresponding to the preset macro and identify a type of a predicate included in the processed voice data.

프로세서(520)는 메모리(530)에 저장된 복수 개의 데이터베이스들 중에서 식별된 서술어에 대응되는 데이터베이스를 선택할 수 있다. The processor 520 may select a database corresponding to the identified predicate from among a plurality of databases stored in the memory 530.

프로세서(520)는 메모리(530)에 저장된 식별된 서술어에 대응되는 데이터베이스에 포함된 정보에 기반하여, 음성 명령을 실행할 적어도 하나의 장치 및 음성 명령에 따라 적어도 하나의 장치가 수행할 기능을 결정할 수 있다. 이때, 음성 명령을 실행할 장치가 복수 개이면, 프로세서(520)는 복수 개의 장치들 중에서 음성 명령에 따른 기능을 실제 실행할 장치에 대하여 사용자 확인을 요청할 수도 있다. 예로, 프로세서(520)는 복수 개의 장치 및 복수 개의 장치들이 수행할 기능에 관한 정보가 외부 장치(예: 도 1의 음성 취득 장치(100))에게 전송되도록 통신 회로(510)를 제어하고, 상기 외부 장치로부터 복수 개의 장치들 중에서 사용자가 선택한 장치에 관한 정보를 수신하도록 통신 회로(510)를 제어할 수 있다. The processor 520 may determine at least one device to execute a voice command and a function to be performed by the at least one device according to the voice command based on information included in the database corresponding to the identified predicate stored in the memory 530. have. In this case, if there are a plurality of devices to execute the voice command, the processor 520 may request user confirmation from among the plurality of devices to actually execute a function according to the voice command. For example, the processor 520 controls the communication circuit 510 to transmit information on a plurality of devices and a function to be performed by the plurality of devices to an external device (eg, the voice acquisition device 100 of FIG. 1 ), and the The communication circuit 510 may be controlled to receive information on a device selected by a user from among a plurality of devices from an external device.

다양한 실시예로, 복수 개의 데이터베이스들에 서술어에 대응되는 정보가 존재하지 않는 경우, 프로세서(520)는 외부 서버(예: 도 1의 외부 서버(400))로 서술어를 전송하고, 외부 서버로부터 서술어에 대응되는 정보를 수신하도록 통신 회로(510)를 제어할 수 있다.In various embodiments, when information corresponding to a predicate does not exist in a plurality of databases, the processor 520 transmits the predicate to an external server (eg, the external server 400 of FIG. 1) and transmits the predicate from the external server. The communication circuit 510 may be controlled to receive information corresponding to.

적어도 하나의 장치 및 기능이 결정되면, 프로세서(520)는 적어도 하나의 장치에서 음성 명령에 따른 기능이 실행되도록 제어할 수 있다. 예로, 프로세서(520)는 메모리(530)에 저장된 데이터베이스에 포함된 정보에 기반하여, 적어도 하나의 장치가 전자 장치(500)로 결정됨에 따라, 음성 명령에 따른 기능을 실행할 수 있다. 다른 예로, 프로세서(520)는 메모리(530)에 저장된 데이터베이스에 포함된 정보에 기반하여, 적어도 하나의 장치가 제3 장치(예: 도 1의 음성 실행 장치(300))로 결정됨에 따라, 음성 명령에 따른 기능에 관한 정보가 제3 장치로 전송되도록 통신 회로(510)를 제어할 수 있다.When at least one device and function is determined, the processor 520 may control the at least one device to execute a function according to a voice command. For example, the processor 520 may execute a function according to a voice command as at least one device is determined as the electronic device 500 based on information included in a database stored in the memory 530. As another example, as the processor 520 determines that at least one device is a third device (eg, the voice execution device 300 of FIG. 1) based on information included in the database stored in the memory 530, the voice The communication circuit 510 may be controlled so that information on a function according to a command is transmitted to the third device.

다양한 실시예로, 음성 명령에 따른 기능에 대하여 사용자 피드백에 관한 정보가 획득되는 경우, 프로세서(520)는 사용자 피드백에 관한 정보에 기반하여, 서술어에 따라 구분된 복수 개의 데이터베이스를 업데이트할 수 있다. In various embodiments, when information about user feedback is obtained for a function according to a voice command, the processor 520 may update a plurality of databases classified according to a predicate based on the information about the user feedback.

도 3 및 도 4는 본 개시의 일 실시예에 따른 서술어 데이터베이스들을 나타내는 도면이다.3 and 4 are diagrams illustrating predicate databases according to an embodiment of the present disclosure.

도 3 및 도 4의 서술어 데이터베이스는 도 2의 메모리(530)에 포함될 수 있다. 또는, 서술어 데이터베이스는 전자 장치(500)와 통신 가능한 외부 장치의 메모리에 저장될 수 있다. 서술어 데이터베이스에는, 예로, 형용사 데이터베이스 또는 동사 데이터베이스 중 적어도 하나가 있을 수 있다. 전자 장치(500)가 문법적인 요소를 갖는 전처리된 음성 데이터를 수신하는 경우, 전자 장치(500)는 음성 데이터에 포함된 문법적인 요소로서 서술어의 종류를 식별할 수 있다. 예로, 전자 장치(500)는 음성 데이터에 포함된 서술어가 동사를 포함하는지 또는 형용사를 포함하는지를 식별할 수 있다. 서술어의 종류가 식별되면, 전자 장치(500)는 메모리(450)에 포함된 복수 개의 데이터베이스들 중에서 식별된 서술어에 대응되는 데이터베이스를 선택할 수 있다. 전자 장치(500)는 선택된 데이터베이스로부터 사용자의 음성 명령을 실행할 장치에 관한 정보 및 액션에 관한 정보를 획득할 수 있다. The predicate database of FIGS. 3 and 4 may be included in the memory 530 of FIG. 2. Alternatively, the predicate database may be stored in a memory of an external device capable of communicating with the electronic device 500. In the predicate database, for example, there may be at least one of an adjective database and a verb database. When the electronic device 500 receives preprocessed voice data having a grammatical element, the electronic device 500 may identify a type of a predicate as a grammatical element included in the voice data. For example, the electronic device 500 may identify whether a predicate included in the voice data includes a verb or an adjective. When the type of the predicate is identified, the electronic device 500 may select a database corresponding to the identified predicate from among a plurality of databases included in the memory 450. The electronic device 500 may obtain information on a device for executing a user's voice command and information on an action from the selected database.

이러한 데이터베이스의 일 예로서, 도 3의 형용사 데이터베이스는 형용사 필드(301)를 기준으로, 상기 형용사에 대응되는 사용자 요구 사항 필드(302), 상기 형용사에 대응되는 지원 가능한 Edge 장치 필드(303), 상기 형용사에 대응되는 지원 가능한 Thing 장치 필드(304) 또는 상기 형용사에 대응되는 액션 필드(305) 중 적어도 하나를 포함할 수 있다. As an example of such a database, the adjective database of FIG. 3 includes a user requirement field 302 corresponding to the adjective, a supportable edge device field 303 corresponding to the adjective, and the adjective field 301 It may include at least one of a supportable Thing device field 304 corresponding to an adjective or an action field 305 corresponding to the adjective.

예로, 도 3의 311에서, 형용사가 '추워'인 경우, '추워'에 대응되는 사용자 요구 사항은 '실내 온도를 높여라'일 수 있다. 또한, '추워'에 대응되는 Edge 장치는 없으며, '추워'에 대응되는 Thing 장치는 '에어컨'일 수 있다. 그리고, '에어컨'에 대한 액션은 '에어컨'을 끄거나 약하게 하여 실내 온도를 높이는 것일 수 있다.For example, in 311 of FIG. 3, when the adjective is'cold', a user requirement corresponding to'cold' may be'raise indoor temperature'. In addition, there is no edge device corresponding to'cold', and the Thing device corresponding to'cold' may be'air conditioner'. And, the action for the'air conditioner' may be to increase the room temperature by turning off or weakening the'air conditioner'.

다른 예로, 도 3의 312에서, 형용사가 '시끄러워'인 경우, '시끄러워'에 대응되는 사용자 요구 사항은 '소리가 너무 크다. 소리를 낮춰줘'일 수 있다. 또한, '시끄러워'에 대응되는 Edge 장치에는 'TV' 및 '음향 기기'가 포함될 수 있으며, '시끄러워'에 대응되는 Thing 장치에는 '에어컨', '제습기', '공기 청정기', '세탁기', '건조기'가 포함될 수 있다. 그리고, 'TV' 및 '음향 기기'에 대한 액션은 소리를 낮추는 것이고, '에어컨', '제습기', '공기 청정기', '세탁기', '건조기'에 대한 액션은 소리가 낮춰지도록, 각각의 동작 모드의 설정을 조절하거나, 그룹핑하여 일괄적으로 동작 모드의 설정을 조절하는 것일 수 있다.As another example, in 312 of FIG. 3, when the adjective is'noisy', the user requirement corresponding to'noisy' is'the sound is too loud'. It could be'lower the sound.' In addition, edge devices corresponding to'Noisy' may include'TV' and'sound equipment', and Thing devices corresponding to'Noisy' include'air conditioners','dehumidifiers','air purifiers','washing machines', A'dryer' may be included. And, the action for'TV' and'sound device' is to lower the sound, and the action for'air conditioner','dehumidifier','air purifier','washing machine' and'dryer' is to lower the sound. The setting of the operation mode may be adjusted, or the setting of the operation mode may be collectively adjusted by grouping.

도 3의 액션은 발명의 이해를 돕기 위하여 자연어로 기술하였으나, 액션은 기능 수행에 필요한 명령어를 포함할 수도 있다. 예로, 도 3의 311의 액션은, '에어컨'의 오프, '에어컨'의 온도 낮춤, '에어컨'을 일정 온도로 유지 등과 같은 명령어를 포함할 수 있다.Although the action of FIG. 3 is described in natural language to aid understanding of the invention, the action may include a command required to perform a function. For example, the action 311 of FIG. 3 may include commands such as turning off the'air conditioner', lowering the temperature of the'air conditioner', and maintaining the'air conditioner' at a constant temperature.

서술어 데이터베이스의 다른 일 예로서, 도 4의 동사 데이터베이스는 동사 필드(401)를 기준으로, 상기 동사에 대응되는 사용자 요구 사항 필드(402), 상기 동사에 대응되는 주체 장치(또는, 주어) 필드(402) 또는 상기 동사에 대응되는 액션 대상(또는, 목적어) 필드(403) 중 적어도 하나를 포함할 수 있다. 여기서, 주체 장치는, 음성 명령에 따른 기능을 실행하는 장치로서, 예로, Edge 장치(또는, 음성 분석 장치)(200) 및 Thing 장치(또는, 음성 실행 장치)(300)를 포함할 수 있다. 또한, 액션 대상은, 상기 동사에 대응하여 전자 장치(500)에서 수행되는 기능의 목적물을 포함할 수 있다.As another example of the predicate database, the verb database of FIG. 4 includes a user requirement field 402 corresponding to the verb and a subject device (or subject) field corresponding to the verb based on the verb field 401 ( 402) or an action target (or object) field 403 corresponding to the verb. Here, the subject device is a device that executes a function according to a voice command, and may include, for example, an edge device (or a voice analysis device) 200 and a Thing device (or a voice execution device) 300. In addition, the action target may include a target of a function performed by the electronic device 500 in response to the verb.

예로, 도 4의 401에서, 동사가 '청소해줘'인 경우, '청소해줘'에 대응되는 기능을 실행하는 주체 장치는 '로봇 청소기'이고, 상기 동사에 대응되는 액션 대상은 '방바닥 '먼지'가 될 수 있다. For example, in 401 of FIG. 4, when the verb is'clean up', the main device that executes the function corresponding to'clean up' is'robot cleaner', and the action target corresponding to the verb is'floor'dust' Can be.

다른 예로, 도 4의 402에서, 동사가 '조용히 해줘'인 경우, '조용히 해줘'에 대응되는 기능을 실행하는 주체 장치는 '에어컨', 'TV', '세탁기', '로봇 청소기', '공기 청정기'일 수 있다. 또한, 상기 동사에 대응되는 액션 대상은 '소리'가 될 수 있다. As another example, in 402 of FIG. 4, when the verb is'Please be quiet', the main devices that execute a function corresponding to'Please be quiet' are'air conditioner','TV','washing machine','robot cleaner', ' It could be an air purifier. In addition, the action object corresponding to the verb may be'sound'.

다양한 실시예로, 서술어 데이터베이스에 포함된 정보는, 사용자의 음성 명령에 기반하여 생성, 추가 또는 업데이트될 수 있다. 예로, 전자 장치(500)는 사용자의 음성 명령에 포함된 음성 데이터의 문법적인 요소를 식별할 수 있다. 예로, 전자 장치(500)는 음성 데이터에 주어, 동사, 형용사 또는 목적어 중 적어도 하나가 포함되는지를 식별할 수 있다. 음성 데이터의 문법적인 요소가 식별되면, 전자 장치(500)는 식별된 주어, 동사, 형용사 또는 목적어를 동사 데이터베이스 또는 형용사 데이터베이스에 기록할 수 있다. In various embodiments, information included in the predicate database may be generated, added, or updated based on a user's voice command. For example, the electronic device 500 may identify a grammatical element of voice data included in a user's voice command. For example, the electronic device 500 may identify whether at least one of a verb, an adjective, or an object is included in the voice data. When a grammatical element of voice data is identified, the electronic device 500 may record the identified subject, verb, adjective, or object in a verb database or adjective database.

예로, 전자 장치(500)는 도 3의 형용사 데이터베이스의 형용사 필드(301)에 식별된 형용사를 기록하고, 형용사 데이터베이스의 지원 가능한 Edge 장치 필드(303) 또는 지원 가능한 Thing 장치 필드(304)에 주어를 기록하고, 액션 필드(305)에 동사 및 목적어를 기록할 수 있다. 다른 예로, 전자 장치(500)는 도 4의 동사 데이터베이스의 동사 필드(401)에 식별된 동사를 기록하고, 동사 데이터베이스의 주체 장치 필드(402)에 주어를 기록하고, 액션 대상 필드(403)에는 목적어를 기록할 수 있다. For example, the electronic device 500 records the identified adjective in the adjective field 301 of the adjective database of FIG. 3, and assigns a subject to the supportable Edge device field 303 or the supportable Thing device field 304 of the adjective database. And record the verb and object in the action field 305. As another example, the electronic device 500 records the identified verb in the verb field 401 of the verb database of FIG. 4, records the subject in the subject device field 402 of the verb database, and records the subject in the action target field 403. Objects can be recorded.

다양한 실시예로, 전자 장치(500)는 다른 장치와 서술어 데이터베이스를 공유할 수 있다. 예로, 제1 음성 분석 장치(200)의 서술어 데이터베이스에 포함된 정보는 제2 음성 분석 장치(201)의 서술어 데이터베이스 및 제3 음성 분석 장치(202)의 서술어 데이터베이스로 전달될 수 있다. 반대로, 제2 음성 분석 장치(201)의 서술어 데이터베이스 및 제3 음성 분석 장치(202)의 서술어 데이터베이스에 포함된 정보가 제1 음성 분석 장치(200)의 서술어 데이터베이스로 전달될 수 있다. In various embodiments, the electronic device 500 may share a predicate database with other devices. For example, information included in the predicate database of the first voice analysis device 200 may be transferred to the predicate database of the second voice analysis device 201 and the predicate database of the third voice analysis device 202. Conversely, information included in the predicate database of the second voice analysis apparatus 201 and the predicate database of the third voice analysis apparatus 202 may be transferred to the predicate database of the first voice analysis apparatus 200.

전자 장치(500)는 다른 장치와 주기적으로 서술어 데이터베이스를 공유할 수도 있고, 이벤트 발생 시에 서술어 데이터베이스를 공유할 수도 있다. 예로, 전자 장치(500)는 사용자의 업데이트 요청 이벤트가 발생하거나, 기 설정된 시사용자 피드백에 따라 전자 장치(500)의 데이터베이스가 업데이트 되는 경우, 다른 장치와 서술어 데이터베이스를 공유할 수 있다.The electronic device 500 may periodically share the predicate database with other devices, or may share the predicate database when an event occurs. For example, when an update request event from the user occurs or the database of the electronic device 500 is updated according to a preset user feedback, the electronic device 500 may share the predicate database with other devices.

도 5는 본 개시의 일 실시예에 따른 매크로 데이터베이스를 나타내는 도면이다.5 is a diagram illustrating a macro database according to an embodiment of the present disclosure.

도 5의 매크로 데이터베이스는 기 설정된 매크로 이름 필드(501), 및 매크로 이름에 대응되는 처리 음성 데이터 필드(502)를 포함할 수 있다. The macro database of FIG. 5 may include a preset macro name field 501 and a processed voice data field 502 corresponding to the macro name.

예로, 도 5의 501에서, 매크로 이름이 '나갔다 올게'인 경우, 매크로 이름에 대응되는 처리 음성 데이터는 '모든 전자 제품의 전원을 꺼줘'일 수 있다. 다른 예로, 도 5의 502에서, 매크로 이름이 '안녕 빅스비'인 경우, 매크로 이름에 대응되는 처리 음성 데이터는 '오늘의 뉴스와 날씨를 알려줘. 공기 청정기 2시간 동안 돌려줘, 에어컨 온도를 27도로 맞춰줘'일 수 있다.For example, in 501 of FIG. 5, when the macro name is “I will go out and come”, the processed voice data corresponding to the macro name may be “Turn off all electronic products”. As another example, in 502 of FIG. 5, if the macro name is'Hi Bixby', the processed voice data corresponding to the macro name is'Tell me today's news and weather. Turn the air purifier back for 2 hours and set the air conditioner temperature to 27 degrees.

이러한 매크로 이름에 대응되는 처리 음성 데이터의 설정은, 사용자에 의하여 설정될 수도 있고, 전자 장치(500)의 제조자, 전자 장치(500)에 설치된 어플리케이션의 제공자 또는 운영 시스템의 제공자 등에 의하여 디폴트 정보로 기 설정될 수 있다. 일 예로, 전자 장치(500)는 사용자가 발화하는 문장 형식을 고려하여 매크로 이름을 설정할 수도 있다. 예로, 사용자는 조건문 형식으로 매크로 이름을 설정할 수 있다. 예로, 사용자는 "빅스비! 앞으로는 내가 '나갔다 올게'라고 말하면 '모든 전자 제품 전원을 꺼줘'"라고, 조건문 형식으로 발화할 수 있다. 이 경우, 전자 장치(500)는 사용자가 발화한 음성 명령으로부터 매크로 이름 및 매크로 이름에 따라 수행될 처리 음성 데이터를 결정할 수 있다. The setting of the processed voice data corresponding to the macro name may be set by the user, or is written as default information by the manufacturer of the electronic device 500, the provider of the application installed in the electronic device 500, or the provider of the operating system. Can be set. As an example, the electronic device 500 may set a macro name in consideration of a sentence format uttered by the user. For example, the user can set the macro name in the form of a conditional sentence. For example, the user may say, "Bixby! In the future, if I say'I'll go out', turn off all electronic products'", in the form of a conditional sentence. In this case, the electronic device 500 may determine the processed voice data to be performed according to the macro name and the macro name from the voice command uttered by the user.

예로, 도 5의 511과 같이, 전자 장치(500)는 매크로 이름으로 음성 명령에 대응되는 음성 데이터인 '나갔다 올게'를 설정하고, 매크로 이름에 대응되는 처리 음성 데이터로 '모든 전자 제품의 전원을 꺼줘'를 설정할 수 있다. For example, as shown in 511 of FIG. 5, the electronic device 500 sets'I'll go out', which is voice data corresponding to a voice command, as a macro name, and'turn off power to all electronic products' as processed voice data corresponding to the macro name. Turn it off' can be set.

이 경우, 사용자가 '나갔다 올게'를 발화하는 경우, 전자 장치(500)는 매크로 데이터베이스에서 발화된 음성 명령에 대응되는 매크로 이름이 존재하는지를 식별하고, 음성 명령에 대응되는 매크로 이름이 존재하는 경우, 매크로 이름에 대응되는 처리 음성 데이터인 '모든 전자 제품의 전원을 꺼줘'를 획득할 수 있다. 전자 장치(500)는 획득된 처리 음성 데이터의 서술어의 종류를 식별하고, 서술어에 대응되는 데이터베이스에 포함된 정보에 기반하여, 전체 음성 명령을 실행할 적어도 하나의 장치, 및 상기 적어도 하나의 장치가 수행할 기능을 결정할 수 있다. 그리고, 전자 장치(500)는 상기 적어도 하나의 장치에서 전체 음성 명령에 따른 기능이 실행되도록 제어할 수 있다.In this case, when the user utters'I will go out', the electronic device 500 identifies whether a macro name corresponding to the voice command uttered in the macro database exists, and when there is a macro name corresponding to the voice command, 'Turn off all electronic products', which is the processed voice data corresponding to the macro name, can be obtained. The electronic device 500 identifies the type of the predicate of the acquired processed voice data, and based on information included in the database corresponding to the predicate, at least one device to execute the entire voice command, and the at least one device You can decide what functions to do. In addition, the electronic device 500 may control the at least one device to execute a function according to all voice commands.

도 6은 본 개시의 일 실시예에 따른 전자 장치의 흐름도이다.6 is a flowchart of an electronic device according to an embodiment of the present disclosure.

먼저, 동작 601에서, 전자 장치(500)는 외부 장치(예: Dot 장치(100))로부터 사용자가 발화한 음성 명령에 대응되는 음성 데이터를 획득할 수 있다. First, in operation 601, the electronic device 500 may obtain voice data corresponding to a voice command uttered by a user from an external device (eg, the dot device 100).

동작 603에서, 음성 데이터를 획득한 전자 장치(500)는 음성 데이터를 분석하여 사용자가 발화한 음성 명령이 매크로로 기 설정된 경우, 기 설정된 매크로에 대응되는 처리 음성 데이터를 매크로 데이터베이스에서 검색하여, 상기 음성 명령에 대응되는 처리 음성 데이터를 획득할 수 있다. 사용자가 발화한 음성 명령이 매크로로 기 설정되지 않은 경우, 동작 603 과정은 생략될 수 있다. In operation 603, when the voice command uttered by the user by analyzing the voice data is preset as a macro, the electronic device 500 that obtains the voice data searches for processed voice data corresponding to the preset macro from the macro database, Processed voice data corresponding to the voice command may be obtained. If the voice command uttered by the user is not previously set as a macro, operation 603 may be omitted.

동작 605에서, 음성 데이터를 획득한 획득한 전자 장치(500)는 음성 데이터에 포함된 서술어의 종류를 식별할 수 있다. In operation 605, the acquired electronic device 500 that has obtained the voice data may identify a type of a predicate included in the voice data.

동작 607에서, 전자 장치(500)는 음성 데이터에 동사가 포함되는지 판단할 수 있다. In operation 607, the electronic device 500 may determine whether a verb is included in the voice data.

동사가 포함되는 경우, 동작 609에서, 전자 장치(500)는 음성 데이터에 주어가 포함되는지 판단할 수 있다. When the verb is included, in operation 609, the electronic device 500 may determine whether the subject is included in the voice data.

음성 데이터에 동사 및 주어가 포함되는 경우, 동작 611에서, 전자 장치(500)는 주어에 대응되는 장치(예: Edge 장치(200) 또는 Thing 장치(300))로 동사에 대응되는 명령어를 전송하여, 음성 명령에 따른 기능이 수행되도록 제어할 수 있다. When a verb and a subject are included in the voice data, in operation 611, the electronic device 500 transmits a command corresponding to the verb to a device corresponding to the subject (eg, the Edge device 200 or the Thing device 300). , It is possible to control to perform a function according to the voice command.

반면에, 동작 609의 판단 결과, 동사는 존재하되 주어가 존재하지 않는 경우, 동작 613에서, 전자 장치(500)는 사용자가 발화한 음성 명령의 이전 음성 명령을 분석하여, 이전 음성 명령에 사용자가 지칭하는 장치(예: Edge 장치(200) 또는 Thing 장치(300))가 존재하는지를 판단할 수 있다. On the other hand, as a result of the determination in operation 609, if the verb exists but the subject does not exist, in operation 613, the electronic device 500 analyzes the previous voice command of the voice command uttered by the user, and It may be determined whether a device to be referred to (eg, the Edge device 200 or the Thing device 300) exists.

만약, 이전 음성 명령에 사용자가 지칭하는 장치(예: Edge 장치(200) 또는 Thing 장치(300))가 존재하는 경우, 전자 장치(500)는 전술한 동작 611과 같이, 사용자가 지칭한 주어에 대응되는 장치로 동사에 대응되는 명령어를 전송하여, 음성 명령에 따른 기능이 수행되도록 제어할 수 있다. If there is a device (eg, Edge device 200 or Thing device 300) indicated by the user in the previous voice command, the electronic device 500 corresponds to the subject indicated by the user, as in operation 611 described above. By transmitting a command corresponding to the verb to the device to be used, the function according to the voice command can be controlled to be performed.

반면에, 동작 613의 판단 결과, 이전 음성 명령에서 사용자가 지칭하는 장치가 존재하지 않는 경우, 동작 615에서, 전자 장치(500)는 동사 데이터베이스에 포함된 정보로서, 동사에 대응되는 주체 장치(예: Edge 장치(200) 또는 Thing 장치(300)) 및 액션 대상에 관한 정보에 기반하여, 음성 명령을 실행할 장치 및 음성 명령에 따라 장치가 수행할 기능을 결정할 수 있다. 이때, 동사 데이터베이스에 상기 동사에 대응되는 정보가 없는 경우, 전자 장치(500)는 외부 서버로 식별된 동사 또는 동작 601에서 획득한 음성 데이터를 전송하고, 이에 대한 응답으로 음성 명령을 실행할 장치 및 음성 명령에 따라 상기 장치가 수행할 기능에 관한 정보를 수신할 수도 있다.On the other hand, as a result of the determination in operation 613, if there is no device indicated by the user in the previous voice command, in operation 615, the electronic device 500 is information included in the verb database, and the subject device corresponding to the verb (for example, : Based on the information on the edge device 200 or the Thing device 300 and the action target, a device to execute a voice command and a function to be performed by the device according to the voice command may be determined. At this time, if there is no information corresponding to the verb in the verb database, the electronic device 500 transmits the verb identified to an external server or the voice data obtained in operation 601, and the device and voice to execute a voice command in response thereto. According to an instruction, information on a function to be performed by the device may be received.

한편, 동작 607에서, 음성 데이터에 동사가 포함되지 않는 경우, 동작 617에서, 전자 장치(500)는 형용사가 포함되는지를 판단할 수 있다. Meanwhile, in operation 607, when the verb is not included in the voice data, in operation 617, the electronic device 500 may determine whether the adjective is included.

형용사가 포함되는 경우, 동작 619에서, 전자 장치(500)는 형용사 데이터베이스에 포함된 정보로서, 형용사에 대응되는 주체 장치(예: Edge 장치(200) 또는 Thing 장치(300)) 및 액션에 관한 정보에 기반하여, 음성 명령을 실행할 장치 및 음성 명령에 따라 상기 장치가 수행할 기능을 결정할 수 있다. 이때, 형용사 데이터베이스에 상기 형용사에 대응되는 정보가 없는 경우, 전자 장치(500)는 외부 서버로 식별된 형용사 또는 동작 601에서 획득한 음성 데이터를 전송하고, 이에 대한 응답으로 음성 명령을 실행할 장치 및 음성 명령에 따라 상기 장치가 수행할 기능에 관한 정보를 수신할 수도 있다.When the adjective is included, in operation 619, the electronic device 500 is information included in the adjective database, and information on the subject device (eg, Edge device 200 or Thing device 300) corresponding to the adjective and action Based on, a device for executing a voice command and a function to be performed by the device according to the voice command may be determined. At this time, if there is no information corresponding to the adjective in the adjective database, the electronic device 500 transmits the adjective identified to an external server or the voice data obtained in operation 601, and the device and voice to execute a voice command in response thereto. According to an instruction, information on a function to be performed by the device may be received.

동작 615 및 동작 619에서, 음성 명령을 실행할 장치 및 음성 명령에 따라 장치가 수행할 기능이 결정되면, 동작 621에서, 전자 장치(500)는 음성 명령을 실행 가능한 장치가 복수 개인지를 판단할 수 있다. In operations 615 and 619, when a device to execute a voice command and a function to be performed by the device are determined according to the voice command, in operation 621, the electronic device 500 may determine whether there are a plurality of devices capable of executing the voice command. .

음성 명령을 실행 가능한 장치가 복수 개가 아닌 것으로 판단되는 경우, 동작 623에서, 전자 장치(500)는 상기 음성 명령을 실행할 장치에서 음성 명령에 따른 기능이 실행되도록 제어할 수 있다. 예로, 전자 장치(500)는 음성 명령에 따른 기능을 실행할 장치가 전자 장치(500) 자신으로 식별되면, 상기 기능을 직접 수행할 수 있다. 다른 예로, 전자 장치(500)는 음성 명령에 따른 기능을 실행할 장치가 제3 장치로 식별되면, 제3 장치로 음성 명령에 따른 기능에 관한 정보를 전송할 수 있다If it is determined that there are not a plurality of devices capable of executing the voice command, in operation 623, the electronic device 500 may control the device to execute the voice command to execute a function according to the voice command. For example, when a device to execute a function according to a voice command is identified as the electronic device 500 itself, the electronic device 500 may directly perform the function. As another example, when a device to execute a function according to a voice command is identified as a third device, the electronic device 500 may transmit information on the function according to the voice command to the third device.

반면, 음성 명령을 실행 가능한 장치가 복수 개인 경우, 동작 625에서, 전자 장치(500)는 음성 명령을 실행 가능한 복수 개의 장치들 중 음성 명령에 따른 기능을 실제 실행할 장치에 대하여 사용자 확인을 받을 수 있다. 예로, 전자 장치(500)는 복수 개의 장치들 및 복수 개의 장치들이 수행할 기능에 관한 정보를 외부 장치(예: Dot 장치(100) 또는 Thing 장치(300)), 사용자가 이용 중인 장치 또는 사용자에게 인접한 장치에게 전달할 수 있다. 상기 정보를 수신한 장치는 복수 개의 장치들 및 상기 복수 개의 장치들이 수행할 기능에 관한 설명 정보를 사용자에게 제공할 수 있다. 예로, 상기 장치는 화면의 메뉴를 통하여 상기 설명 정보를 제공하거나, 사운드를 통하여 상기 설명 정보를 제공할 수도 있다. 상기 설명 정보를 참조하여, 사용자가 음성 명령을 실행할 장치를 선택하면, 상기 장치는 사용자가 선택한 장치에 관한 정보를 전자 장치(500)게 전송할 수 있다. 다양한 실시예로, 전자 장치(500)가 직접 복수 개의 장치들 및 상기 복수 개의 장치들이 수행할 기능에 관한 설명 정보를 사용자에게 제공할 수도 있다.On the other hand, when there are a plurality of devices capable of executing a voice command, in operation 625, the electronic device 500 may receive a user confirmation for a device that will actually execute a function according to the voice command among a plurality of devices capable of executing the voice command. . For example, the electronic device 500 may provide information on a plurality of devices and functions to be performed by the plurality of devices to an external device (eg, the dot device 100 or the Thing device 300), a device being used by the user, or a user. Can be delivered to adjacent devices. The device receiving the information may provide a user with description information about a plurality of devices and functions to be performed by the plurality of devices. For example, the device may provide the description information through a menu on the screen or may provide the description information through sound. When the user selects a device to execute a voice command with reference to the description information, the device may transmit information on the device selected by the user to the electronic device 500. In various embodiments, the electronic device 500 may directly provide a plurality of devices and description information about functions to be performed by the plurality of devices to a user.

설명 정보에 기반하여, 사용자가 복수 개의 장치들 중 적어도 하나의 장치를 선택하면, 전술한 동작 623과 같이, 전자 장치(500)는 사용자에 의하여 선택된 적어도 하나의 장치에서 음성 명령에 따른 음성 기능이 실행되도록 제어할 수 있다.Based on the description information, when the user selects at least one of the plurality of devices, as in operation 623, the electronic device 500 performs a voice function according to a voice command in the at least one device selected by the user. You can control it to run.

적어도 하나의 장치에서 음성 명령에 따른 기능이 실행되면, 동작 627에서, 전자 장치(500) 또는 외부 장치(예: Dot 장치(100) 또는 Thing 장치(300))는 음성 명령에 따른 기능이 실행되었거나 또는 실행 중인 것을 나타내는 음성 명령 피드백을 사용자에게 제공할 수 있다. 음성 명령 피드백을 사용자에게 제공하는 것은, 예로, 시각적 피드백으로서 LED를 점등 또는 점멸하거나, 알림 메시지를 화면에 표시하거나, 청각적 피드백으로서 음성 또는 사운드를 제공하는 것을 포함할 수 있다.When the function according to the voice command is executed in at least one device, in operation 627, the electronic device 500 or an external device (for example, the dot device 100 or the Thing device 300) executes the function according to the voice command. Alternatively, voice command feedback indicating that it is running may be provided to the user. Providing the voice command feedback to the user may include lighting or blinking an LED as visual feedback, displaying a notification message on a screen, or providing voice or sound as an audible feedback.

음성 명령 피드백이 제공되면, 동작 629에서, 전자 장치(500) 또는 외부 장치(예: Dot 장치(100) 또는 Thing 장치(300))는 음성 명령 피드백 정보에 따라 사용자가 입력한 사용자 피드백을 입력 받을 수 있다. 외부 장치가 사용자 피드백을 입력 받은 경우는, 외부 장치는 입력 받은 사용자 피드백에 관한 정보를 전자 장치(500)로 전달할 수 있다. When the voice command feedback is provided, in operation 629, the electronic device 500 or an external device (eg, the dot device 100 or the Thing device 300) receives the user feedback input by the user according to the voice command feedback information. I can. When the external device receives user feedback, the external device may transmit information about the received user feedback to the electronic device 500.

사용자 피드백에 관한 정보에 기반하여, 동작 631에서, 전자 장치(500)는 사용자 피드백의 유형을 판단할 수 있다. 예로, 전자 장치(500)는 사용자의 피드백이 존재하는지 또는 존재하지 않는지를 판단할 수 있다. 사용자의 피드백이 존재하는 경우, 전자 장치(500)는 사용자 피드백이 긍정적인 피드백인지, 부정적인 피드백인지를 판단할 수 있다. 긍정적인 피드백은, 예로, "잘했어", "고마워" 와 같은 음성 피드백일 수 있다. 또한, 긍정적인 피드백은, 예로, "아니지", "다시 해"와 같은 음성 피드백일 수 있다. 다양한 실시예로, 사용자의 피드백이 없는 경우는, 전자 장치(500)는 사용자 피드백이 유형이 긍정적인 피드백인 것으로 간주할 수 있다. Based on the information on the user feedback, in operation 631, the electronic device 500 may determine the type of user feedback. For example, the electronic device 500 may determine whether or not a user's feedback exists. When there is user feedback, the electronic device 500 may determine whether the user feedback is a positive feedback or a negative feedback. The positive feedback may be, for example, a voice feedback such as "good job" or "thank you". In addition, the positive feedback may be, for example, a voice feedback such as "no" or "do it again". In various embodiments, when there is no user feedback, the electronic device 500 may regard the user feedback as being a positive feedback type.

동작 633에서, 전자 장치(500)는 사용자의 피드백에 기반하여, 서술어에 따라 구분된 복수 개의 데이터베이스들을 업데이트할 수 있다. 예로, 사용자의 피드백이 긍정적인 피드백인 경우, 전자 장치(500)는 데이터베이스에서 음성 명령에 해당하는 정보에 가중치를 부여할 수 있다. 반면에, 사용자의 피드백이 부정적인 피드백인 경우, 전자 장치(500)는 데이터베이스에서 음성 명령에 해당하는 정보에 가중치를 감쇄하거나, 삭제하거나, 사용자의 재 음성 명령을 반영하여 보완 또는 수정할 수 있다. In operation 633, the electronic device 500 may update a plurality of databases classified according to a predicate based on user feedback. For example, when the user's feedback is positive feedback, the electronic device 500 may assign a weight to information corresponding to a voice command in the database. On the other hand, when the user's feedback is a negative feedback, the electronic device 500 may attenuate or delete the weight of information corresponding to the voice command in the database, or supplement or modify it by reflecting the user's voice command again.

동작 635에서, 전자 장치(500)는 업데이트된 복수 개의 데이터베이스에 포함된 정보를 외부 장치(예: Edge 장치(201, 202))와 공유할 수도 있다. 또한, 전자 장치(500)는 업데이트된 복수 개의 데이터베이스에 포함된 정보를 외부 서버(400)와 공유할 수도 있다. 이 경우, 전자 장치(500)는 다른 외부 장치(예: Edge 장치(201, 202)) 또는 외부 서버(400)와 상기 업데이트된 복수 개의 데이터베이스에 포함된 정보를 공유하기 전에, 정보 공유에 대한 사용자의 동의를 요청할 수도 있다. In operation 635, the electronic device 500 may share information included in a plurality of updated databases with an external device (eg, edge devices 201 and 202). Also, the electronic device 500 may share information included in a plurality of updated databases with the external server 400. In this case, before the electronic device 500 shares information included in the updated plurality of databases with other external devices (eg, edge devices 201 and 202) or an external server 400, the user for information sharing You can also ask for your consent.

다양한 실시예로, 전자 장치(500)는 음성 명령에 포함된 서술어의 종류에 기반하여, 복수 개의 데이터베이스들을 선택적으로 업데이트할 수도 있다. 예로, 음성 명령에 포함된 서술어가 동사로 식별된 경우, 전자 장치(500)는 동사 데이터베이스를 업데이트하고, 음성 명령에 포함된 서술어가 형용사로 식별된 경우, 전자 장치(500)는 형용사 데이터베이스를 업데이트할 수 있다. In various embodiments, the electronic device 500 may selectively update a plurality of databases based on the type of predicate included in the voice command. For example, when the predicate included in the voice command is identified as a verb, the electronic device 500 updates the verb database, and when the predicate included in the voice command is identified as an adjective, the electronic device 500 updates the adjective database. can do.

도 7은 본 개시의 다른 실시예에 따른 전자 장치의 흐름도이다.7 is a flowchart of an electronic device according to another exemplary embodiment of the present disclosure.

먼저, 동작 701에서, 전자 장치(100)는 외부 장치(예: Dot 장치(100))로부터 사용자가 발화한 음성 명령에 대응되는 음성 데이터를 획득할 수 있다. First, in operation 701, the electronic device 100 may obtain voice data corresponding to a voice command uttered by a user from an external device (eg, the dot device 100).

동작 703에서, 음성 데이터를 획득한 전자 장치(500)는 음성 데이터를 분석하여 사용자가 발화한 음성 명령이 매크로를 설정하기 위한 음성 명령인지를 판단할 수 있다.In operation 703, the electronic device 500 that has obtained the voice data may analyze the voice data to determine whether the voice command uttered by the user is a voice command for setting a macro.

음성 명령이 매크로를 설정하기 위한 음성 명령이 아닌 경우, 동작 705에서, 전자 장치(500)는 음성 명령에 따른 기능이 실행되도록 제어할 수 있다. 이와 관련된 과정은, 전술한 동작 605 내지 동작 635에 대응되어 중복되는 설명은 생략한다.If the voice command is not a voice command for setting the macro, in operation 705, the electronic device 500 may control to execute a function according to the voice command. The related process corresponds to the above-described operations 605 to 635, and thus redundant descriptions will be omitted.

음성 명령이 매크로로 설정하기 위한 음성 명령인 경우, 동작 707에서, 전자 장치(500)는 음성 명령에 대응되는 음성 데이터를 분석하여, 매크로 이름 및 매크로 이름에 따라 수행될 처리 음성 데이터를 결정할 수 있다. 즉, 전자 장치(500)는 음성 데이터로부터 매크로 이름을 분리하고, 분리된 매크로 이름에 대응되는 처리 음성 데이터를 결정할 수 있다.When the voice command is a voice command for setting a macro, in operation 707, the electronic device 500 may analyze voice data corresponding to the voice command and determine the processed voice data to be performed according to the macro name and the macro name. . That is, the electronic device 500 may separate the macro name from the voice data and determine processed voice data corresponding to the separated macro name.

매크로 이름 및 매크로 이름에 따라 수행될 처리 음성 데이터가 결정되면, 동작 709에서, 전자 장치(500)는 매크로 이름 및 처리 음성 데이터를 매크로 데이터베이스에 등록할 수 있다. 또한, 동작 711에서, 전자 장치(500)는 등록된 매크로 이름 및 처리 음성 데이터를 외부 장치(예: Edge 장치(201, 202))와 공유할 수도 있다. 다른 외부 장치는 전자 장치(500)로부터 수신된 매크로 이름 및 처리 음성 데이터를 이용하여 자신의 매크로 데이터베이스를 업데이트할 수 있다. When the processed voice data to be performed is determined according to the macro name and the macro name, in operation 709, the electronic device 500 may register the macro name and the processed voice data in the macro database. Additionally, in operation 711, the electronic device 500 may share the registered macro name and processed voice data with an external device (eg, edge devices 201 and 202). Another external device may update its own macro database by using the macro name and processed voice data received from the electronic device 500.

도 8은 본 개시의 일 실시예에 따른 음성 인식 시스템의 흐름도이다.8 is a flowchart of a speech recognition system according to an embodiment of the present disclosure.

도 8에서, 제1 전자 장치(801)는 도 1의 음성 취득 장치(100)에 대응되고, 제2 전자 장치(803)는 도 1의 음성 분석 장치(200)에 대응되고, 제3 전자 장치(805)는 도 1의 음성 실행 장치(300)에 대응될 수 있다. In FIG. 8, the first electronic device 801 corresponds to the voice acquisition device 100 of FIG. 1, the second electronic device 803 corresponds to the voice analysis device 200 of FIG. 1, and a third electronic device Reference numeral 805 may correspond to the voice execution device 300 of FIG. 1.

먼저, 동작 811에서, 제1 전자 장치(801)는 사용자의 음성 명령을 입력 받아 생성한 음성 데이터를 제2 전자 장치(803)에게 전송할 수 있다.First, in operation 811, the first electronic device 801 may transmit voice data generated by receiving a user's voice command to the second electronic device 803.

동작 813에서, 제2 전자 장치(803)는 전송 받은 음성 데이터를 수신하여, 음성 데이터에 포함된 서술어의 종류를 식별할 수 있다. 서술어의 종류가 식별되면, 제2 전자 장치(803)는 복수 개의 데이터베이스들 중에서 식별된 서술어에 대응되는 데이터베이스를 선택할 수 있다. In operation 813, the second electronic device 803 may receive the transmitted voice data and identify a type of a predicate included in the voice data. When the type of the predicate is identified, the second electronic device 803 may select a database corresponding to the identified predicate from among a plurality of databases.

다양한 실시예로, 음성 데이터가 수신되면, 제2 전자 장치(803)는 수신된 음성 데이터에 기반하여 사용자의 음성 명령이 매크로로 기 설정되었는지 식별할 수 있다. 사용자의 음성 명령이 매크로로 기 설정된 경우, 제2 전자 장치(803)는 기 설정된 매크로에 대응되는 처리 음성 데이터를 획득할 수도 있다. 그리고, 처리 음성 데이터에 포함된 서술어의 종류가 식별되면, 제2 전자 장치(803)는 복수 개의 데이터베이스들 중에서 식별된 서술어에 대응되는 데이터베이스를 선택할 수도 있다. In various embodiments, when voice data is received, the second electronic device 803 may identify whether a user's voice command is preset to a macro based on the received voice data. When the user's voice command is preset to a macro, the second electronic device 803 may obtain processed voice data corresponding to the preset macro. In addition, when the type of the predicate included in the processed voice data is identified, the second electronic device 803 may select a database corresponding to the identified predicate from among a plurality of databases.

동작 815에서, 제2 전자 장치(803)는 서술어에 대응되는 데이터베이스에 포함된 정보에 기반하여, 음성 명령을 실행할 적어도 하나의 장치 및 음성 명령에 따라 적어도 하나의 장치가 수행할 기능을 결정할 수 있다.In operation 815, the second electronic device 803 may determine at least one device to execute a voice command and a function to be performed by at least one device according to the voice command, based on information included in the database corresponding to the predicate. .

동작 817에서, 제2 전자 장치(803)는 음성 명령을 실행할 적어도 하나의 장치를 판단할 수 있다. 이때, 음성 명령의 실행할 장치가 복수 개인 경우, 제2 전자 장치(803)는 복수 개의 장치들 중에서 음성 명령에 따른 기능을 실제 실행할 장치에 대하여 사용자 확인을 요청할 수 있다.In operation 817, the second electronic device 803 may determine at least one device to execute the voice command. In this case, when there are a plurality of devices to execute the voice command, the second electronic device 803 may request user confirmation from among the plurality of devices to actually execute a function according to the voice command.

음성 명령을 실행할 적어도 하나의 장치가 제2 전자 장치(803) 자신인 경우, 동작 819에서, 제2 전자 장치(803)는 음성 명령에 따른 기능을 실행할 수 있다.When at least one device to execute the voice command is the second electronic device 803 itself, in operation 819, the second electronic device 803 may execute a function according to the voice command.

반면에, 음성 명령을 실행할 적어도 하나의 장치가 제3 전자 장치(805)인 경우, 동작 821에서, 제2 전자 장치(803)는 음성 명령에 따른 기능에 관한 정보를 제3 전자 장치(805)에게 전송할 수 있다.On the other hand, when at least one device to execute the voice command is the third electronic device 805, in operation 821, the second electronic device 803 transmits information on a function according to the voice command to the third electronic device 805. Can be sent to

동작 823에서, 제3 전자 장치(805)는 전송 받은 기능에 관한 정보에 기반하여, 음성 명령에 따른 기능을 실행할 수 있다. In operation 823, the third electronic device 805 may execute a function according to a voice command based on information about the received function.

음성 명령에 따른 기능이 실행되면, 제2 전자 장치(803)는 음성 명령에 따른 기능에 대한 사용자 피드백에 관한 정보가 획득할 수 있다. 제2 전자 장치(803)는 사용자 피드백에 관한 정보에 기반하여, 서술어에 따라 구분된 복수 개의 데이터베이스를 업데이트할 수 있다.When the function according to the voice command is executed, the second electronic device 803 may obtain information about user feedback on the function according to the voice command. The second electronic device 803 may update a plurality of databases classified according to predicates based on the information on user feedback.

도 9는 본 개시의 일 실시예에 따른 네트워크 환경 내의 전자 장치(900)의 블록도이다. 전자 장치(900)는 전술한 도 2의 전자 장치(500)의 일 예가 될 수 있다. 9 is a block diagram of an electronic device 900 in a network environment according to an embodiment of the present disclosure. The electronic device 900 may be an example of the electronic device 500 of FIG. 2 described above.

도 9를 참조하면, 네트워크 환경에서 전자 장치(900)는 제 1 네트워크(998)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(902)와 통신하거나, 또는 제 2 네트워크(999)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(904) 또는 서버(908)(예로, 도 1의 외부 서버(400))와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(900)는 서버(908)를 통하여 전자 장치(904)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(900)는 프로세서(920), 메모리(930), 입력 장치(950), 음향 출력 장치(955), 표시 장치(960), 오디오 모듈(970), 센서 모듈(976), 인터페이스(977), 전력 관리 모듈(988), 배터리(989), 통신 모듈(990)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(900)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(960))가 생략되거나, 하나 이상의 다른 구성 요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(976)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(960)(예: 디스플레이)에 임베디드된 채 구현될 수 있다.Referring to FIG. 9, in a network environment, the electronic device 900 communicates with the electronic device 902 through a first network 998 (eg, short-range wireless communication network), or a second network 999 (eg: It is possible to communicate with the electronic device 904 or the server 908 (eg, the external server 400 of FIG. 1) through a long-distance wireless communication network. According to an embodiment, the electronic device 900 may communicate with the electronic device 904 through the server 908. According to an embodiment, the electronic device 900 includes a processor 920, a memory 930, an input device 950, an audio output device 955, a display device 960, an audio module 970, and a sensor module ( 976), an interface 977, a power management module 988, a battery 989, and a communication module 990. In some embodiments, at least one of these components (for example, the display device 960) may be omitted or one or more other components may be added to the electronic device 900. In some embodiments, some of these components may be implemented as one integrated circuit. For example, the sensor module 976 (eg, a fingerprint sensor, an iris sensor, or an illuminance sensor) may be implemented while being embedded in the display device 960 (eg, a display).

프로세서(920)는, 예를 들면, 소프트웨어(예: 프로그램(940))를 실행하여 프로세서(920)에 연결된 전자 장치(900)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)을 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(920)는 다른 구성요소(예: 센서 모듈(976) 또는 통신 모듈(990))로부터 수신된 명령 또는 데이터를 휘발성 메모리(932)에 로드하고, 휘발성 메모리(932)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(934)에 저장할 수 있다. 일 실시예에 따르면, 프로세서(920)는 메인 프로세서(921)(예: 중앙 처리 장치 또는 어플리케이션 프로세서), 및 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(923)(예: 그래픽 처리 장치, 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 추가적으로 또는 대체적으로, 보조 프로세서(923)은 메인 프로세서(921)보다 저전력을 사용하거나, 또는 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(923)는 메인 프로세서(921)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 920, for example, executes software (eg, a program 940) to implement at least one other component (eg, a hardware or software component) of the electronic device 900 connected to the processor 920. Control, and perform various data processing or operations. According to an embodiment, as at least part of data processing or operation, the processor 920 may store instructions or data received from other components (eg, the sensor module 976 or the communication module 990) to the volatile memory 932. It loads into, processes the command or data stored in the volatile memory 932, and stores the result data in the non-volatile memory 934. According to an embodiment, the processor 920 is a main processor 921 (eg, a central processing unit or an application processor), and a secondary processor 923 that can be operated independently or together with the main processor 921 (eg, a graphics processing unit, an image signal processor). , A sensor hub processor, or a communication processor). Additionally or alternatively, the coprocessor 923 may be configured to use lower power than the main processor 921 or to be specialized for a designated function. The secondary processor 923 may be implemented separately from the main processor 921 or as a part thereof.

보조 프로세서(923)는, 예를 들면, 메인 프로세서(921)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(921)를 대신하여, 또는 메인 프로세서(921)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(921)와 함께, 전자 장치(900)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(960), 센서 모듈(976), 또는 통신 모듈(990))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시예에 따르면, 보조 프로세서(923)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성 요소 또는 통신 모듈(990))의 일부로서 구현될 수 있다. The coprocessor 923 is, for example, on behalf of the main processor 921 while the main processor 921 is in an inactive (eg, sleep) state, or the main processor 921 is active (eg, an application is executed). ) While in the state, together with the main processor 921, at least one of the components of the electronic device 900 (for example, the display device 960, the sensor module 976, or the communication module 990) It is possible to control at least some of the functions or states related to. According to an embodiment, the coprocessor 923 (eg, an image signal processor or a communication processor) may be implemented as a part of the communication module 990 or another functionally related component.

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

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

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

음향 출력 장치(955)는 음향 신호를 전자 장치(900)의 외부로 출력할 수 있다. 음향 출력 장치(955)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output device 955 may output an sound signal to the outside of the electronic device 900. The sound output device 955 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback, and 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.

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

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

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

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

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

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

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

통신 모듈(990)은 전자 장치(900)와 외부 전자 장치(예: 전자 장치(902), 전자 장치(904), 또는 서버(908))간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(990)은 프로세서(920)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시예에 따르면, 통신 모듈(990)은 무선 통신 모듈(992)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(998)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 제 2 네트워크(999)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성 요소(예: 단일 칩)으로 통합되거나, 또는 서로 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. The communication module 990 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 900 and an external electronic device (eg, electronic device 902, electronic device 904, or server 908). It is possible to support establishment and communication through the established communication channel. The communication module 990 operates independently of the processor 920 (eg, an application processor) and may include one or more communication processors that support direct (eg, wired) communication or wireless communication. According to an embodiment, the communication module 990 is a wireless communication module 992 (eg, 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 (eg : A LAN (local area network) communication module, or a power line communication module) may be included. Among these communication modules, a corresponding communication module is a first network 998 (for example, a short-range communication network such as Bluetooth, WiFi direct or IrDA (infrared data association)) or a second network 999 (for example, a cellular network, the Internet, or It can communicate with external electronic devices through a computer network (for example, a telecommunication network such as a LAN or WAN). These various types of communication modules may be integrated into one component (eg, a single chip), or may be implemented as a plurality of separate components (eg, multiple chips).

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, 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 (e.g., a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI))) between peripheral devices and signals ( E.g. commands or data) can be exchanged with each other.

일 실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(999)에 연결된 서버(908)를 통해서 전자 장치(900)와 외부의 전자 장치(904)간에 송신 또는 수신될 수 있다. 전자 장치(902, 904) 각각은 전자 장치(900)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시예에 따르면, 전자 장치(900)에서 실행되는 동작들의 전부 또는 일부는 외부 전자 장치들(902, 904 또는 908) 중 하나 이상의 외부 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(900)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(900)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(900)로 전달할 수 있다. 전자 장치(900)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. According to an embodiment, the command or data may be transmitted or received between the electronic device 900 and the external electronic device 904 through the server 908 connected to the second network 999. Each of the electronic devices 902 and 904 may be a device of the same or different type as the electronic device 900. According to an embodiment, all or some of the operations executed in the electronic device 900 may be executed in one or more of the external electronic devices 902, 904, or 908. For example, when the electronic device 900 needs to perform a function or service automatically or in response to a request from a user or another device, the electronic device 900 may perform the function or service by itself. In addition or in addition, one or more external electronic devices may be requested to perform the function or at least part of the service. One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit the execution result to the electronic device 900. The electronic device 900 may process the result as it is or additionally and provide it as at least a part of a response to the request. To this end, for example, cloud computing, distributed computing, or client-server computing technology may be used.

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

본 개시의 다양한 실시예들은 기기(machine)(예: 전자 장치(900, 500))에 의해 읽을 수 있는 저장 매체(storage medium)(예: 메모리(930, 530))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(940))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(900))의 프로세서(예: 프로세서(920, 520))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present disclosure include one or more instructions stored in a storage medium (eg, memories 930 and 530) that can be read by a machine (eg, electronic devices 900 and 500). It may be implemented as software (for example, the program 940). For example, the processor (eg, the processors 920 and 520) of the device (eg, the electronic device 900) may call and execute at least one command among one or more commands stored from the storage medium. This makes it possible for the device to be operated to perform at least one function according to the at least one command invoked. The one or more instructions may include code generated by a compiler or code executable 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-transient' only means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic wave), and this term refers to the case where data is semi-permanently stored in the storage medium. It does not distinguish between temporary storage cases.

일 실시예에 따르면, 기기에 의해 읽을 수 있는 저장 매체는, 전자 장치(900, 500)가 실행 시에, 프로세서(예: 프로세서(920, 520))가 음성 데이터에 포함된 서술어의 종류를 식별하고, 상기 식별된 서술어에 대응되는 데이터베이스에 포함된 정보에 기반하여, 상기 음성 명령을 실행할 적어도 하나의 장치 및 상기 음성 명령에 따라 상기 적어도 하나의 장치가 수행할 기능을 결정하고, 상기 적어도 하나의 장치에서 상기 음성 명령에 따른 기능의 실행을 제어하도록 설정된 적어도 하나의 인스트럭션을 포함할 수 있다.According to an embodiment, in the storage medium that can be read by the device, when the electronic devices 900 and 500 are executed, the processor (eg, the processors 920 and 520) identifies the type of predicate included in the voice data. And, based on information included in the database corresponding to the identified predicate, at least one device to execute the voice command and a function to be performed by the at least one device according to the voice command are determined, and the at least one The device may include at least one instruction set to control execution of a function according to the voice command.

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

일 실시예에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 일 실시예에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 일 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to an embodiment, each component (eg, a module or program) of the above-described components may include a singular number or a plurality of entities. According to an embodiment, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one 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 to that performed by the corresponding component among the plurality of components prior to the integration. . According to one embodiment, operations performed by a module, program, or other component are sequentially, parallel, repeatedly, or heuristically executed, or one or more of the above operations are executed in a different order or omitted. Or one or more other actions may be added.

500: 전자 장치 510: 통신 회로
520: 프로세서 530: 메모리
500: electronic device 510: communication circuit
520: processor 530: memory

Claims (20)

전자 장치에 있어서,
서술어에 따라 구분된 복수 개의 데이터베이스들을 포함하는 메모리;
외부 장치로부터 음성 명령에 대응하는 음성 데이터를 수신하는 통신 회로; 및
상기 메모리 및 상기 통신 회로와 동작 가능하게(operatively) 연결된 프로세서를 포함하고,
상기 프로세서는,
상기 음성 데이터에 포함된 서술어의 종류를 식별하고,
상기 식별된 서술어에 대응되는 데이터베이스에 포함된 정보에 기반하여, 상기 음성 명령을 실행할 적어도 하나의 장치 및 상기 음성 명령에 따라 상기 적어도 하나의 장치가 수행할 기능을 결정하고,
상기 적어도 하나의 장치에서 상기 음성 명령에 따른 기능이 실행되도록 제어하는,
전자 장치.
In the electronic device,
A memory including a plurality of databases classified according to predicates;
A communication circuit for receiving voice data corresponding to a voice command from an external device; And
A processor operatively connected with the memory and the communication circuit,
The processor,
Identify the type of predicate included in the voice data,
Determine at least one device to execute the voice command and a function to be performed by the at least one device according to the voice command, based on information included in the database corresponding to the identified predicate,
Controlling to execute a function according to the voice command in the at least one device,
Electronic device.
제1항에 있어서,
상기 프로세서는,
상기 음성 명령에 따른 기능이 실행되도록 제어하는 경우,
상기 데이터베이스에 포함된 정보에 기반하여, 상기 적어도 하나의 장치가 상기 전자 장치 자신으로 결정됨에 따라, 상기 음성 명령에 따른 기능을 실행하는,
전자 장치.
The method of claim 1,
The processor,
When controlling to execute the function according to the voice command,
Based on information included in the database, as the at least one device is determined to be the electronic device itself, executing a function according to the voice command,
Electronic device.
제1항에 있어서,
상기 프로세서는,
상기 음성 명령에 따른 기능이 실행되도록 제어하는 경우,
상기 데이터베이스에 포함된 정보에 기반하여, 상기 적어도 하나의 장치가 제3 장치로 결정됨에 따라, 상기 음성 명령에 따른 기능에 관한 정보가 상기 제3 장치로 전송되도록 상기 통신 회로를 제어하는,
전자 장치.
The method of claim 1,
The processor,
When controlling to execute the function according to the voice command,
Based on the information included in the database, as the at least one device is determined to be a third device, controlling the communication circuit to transmit information on a function according to the voice command to the third device,
Electronic device.
제1항에 있어서,
상기 프로세서는,
상기 복수 개의 데이터베이스들 중에서 상기 식별된 서술어에 대응되는 데이터베이스를 선택하는,
전자 장치.
The method of claim 1,
The processor,
Selecting a database corresponding to the identified predicate from among the plurality of databases,
Electronic device.
제1항에 있어서,
상기 음성 명령을 실행할 장치가 복수 개인 경우,
상기 프로세서는,
상기 복수 개의 장치들 중에서 상기 음성 명령에 따른 기능을 실제 실행할 장치에 대하여 사용자 확인을 요청하는,
전자 장치.
The method of claim 1,
When there are multiple devices to execute the voice command,
The processor,
Requesting a user confirmation for a device that will actually execute a function according to the voice command among the plurality of devices,
Electronic device.
제5항에 있어서,
상기 프로세서는,
상기 복수 개의 장치 및 상기 복수 개의 장치들이 수행할 기능에 관한 정보가 상기 외부 장치에게 전송되도록 상기 통신 회로를 제어하고,
상기 외부 장치로부터 상기 복수 개의 장치들 중에서 사용자가 선택한 장치에 관한 정보를 수신하도록 상기 통신 회로를 제어하는,
전자 장치.
The method of claim 5,
The processor,
Controlling the communication circuit so that information on the plurality of devices and functions to be performed by the plurality of devices is transmitted to the external device,
Controlling the communication circuit to receive information on a device selected by a user from among the plurality of devices from the external device,
Electronic device.
제1항에 있어서,
상기 프로세서는,
사용자 피드백에 관한 정보가 획득되는 경우,
상기 사용자 피드백에 관한 정보에 기반하여, 상기 서술어에 따라 구분된 복수 개의 데이터베이스를 업데이트하는,
전자 장치.
The method of claim 1,
The processor,
When information regarding user feedback is obtained,
Updating a plurality of databases classified according to the predicate based on the information on the user feedback,
Electronic device.
제1항에 있어서,
상기 프로세서는,
상기 복수 개의 데이터베이스들에 상기 서술어에 대응되는 정보가 존재하지 않는 경우, 외부 서버로 상기 서술어를 전송하도록 상기 통신 회로를 제어하고,
상기 외부 서버로부터, 상기 서술어에 대응되는 정보를 수신하도록 상기 통신 회로를 제어하는,
전자 장치.
The method of claim 1,
The processor,
When information corresponding to the predicate does not exist in the plurality of databases, controlling the communication circuit to transmit the predicate to an external server,
Controlling the communication circuit to receive information corresponding to the predicate from the external server,
Electronic device.
제1항에 있어서,
상기 프로세서는,
상기 음성 명령이 매크로로 기 설정되었는지 식별하는 동작;
상기 음성 명령이 매크로로 기 설정된 경우, 상기 기 설정된 매크로에 대응되는 처리 음성 데이터를 획득하는,
전자 장치.
The method of claim 1,
The processor,
Identifying whether the voice command is preset as a macro;
When the voice command is preset as a macro, obtaining processed voice data corresponding to the preset macro,
Electronic device.
제1항에 있어서,
상기 복수 개의 데이터베이스들은,
동사 데이터베이스 및 형용사 데이터베이스를 포함하는,
전자 장치.
The method of claim 1,
The plurality of databases,
Containing verb database and adjective database,
Electronic device.
제1항에 있어서,
복수 개의 데이터베이스들이 동사 데이터베이스를 포함하는 경우,
상기 동사 데이터베이스에 포함된 정보는,
상기 동사에 대응되는 사용자 요구 사항, 상기 동사에 대응되는 주체 장치 또는 상기 동사에 대응되는 액션 대상 중 적어도 하나를 포함하는,
전자 장치.
The method of claim 1,
When multiple databases include a verb database,
The information contained in the verb database,
Including at least one of a user requirement corresponding to the verb, a subject device corresponding to the verb, or an action object corresponding to the verb,
Electronic device.
제1항에 있어서,
복수 개의 데이터베이스들이 형용사 데이터베이스를 포함하는 경우,
상기 형용사 데이터베이스에 포함된 정보는,
상기 형용사에 대응되는 사용자 요구 사항, 상기 형용사에 대응되는 지원 가능한 음성 분석 장치, 상기 형용사에 대응되는 지원 가능한 음성 실행 장치 또는 상기 형용사에 대응되는 액션 중 적어도 하나를 포함하는,
전자 장치.
The method of claim 1,
When multiple databases include an adjective database,
The information contained in the adjective database,
Including at least one of a user requirement corresponding to the adjective, a supportable speech analysis device corresponding to the adjective, a supportable speech execution device corresponding to the adjective, or an action corresponding to the adjective,
Electronic device.
전자 장치의 제어 방법에 있어서,
음성 명령에 대응되는 음성 데이터를 수신하는 동작;
상기 음성 데이터에 포함된 서술어의 종류를 식별하는 동작;
상기 서술어에 대응되는 데이터베이스에 포함된 정보에 기반하여, 상기 음성 명령을 실행할 적어도 하나의 장치 및 상기 음성 명령에 따라 상기 적어도 하나의 장치가 수행할 기능을 결정하는 동작; 및
상기 적어도 하나의 장치에서 상기 음성 명령에 따른 기능이 실행되도록 제어하는 동작을 포함하는,
제어 방법.
In the control method of an electronic device,
Receiving voice data corresponding to a voice command;
Identifying the type of predicate included in the voice data;
Determining at least one device to execute the voice command and a function to be performed by the at least one device according to the voice command, based on information included in a database corresponding to the predicate; And
Including controlling to execute a function according to the voice command in the at least one device,
Control method.
제13항에 있어서,
상기 음성 명령에 따른 기능이 실행되도록 제어하는 동작은,
상기 데이터베이스에 포함된 정보에 기반하여, 상기 적어도 하나의 장치가 상기 전자 장치 자신으로 식별됨에 따라, 상기 음성 명령에 따른 기능을 실행하는 동작을 포함하는,
제어 방법.
The method of claim 13,
The operation of controlling to execute the function according to the voice command,
Based on information included in the database, as the at least one device is identified as the electronic device itself, executing a function according to the voice command,
Control method.
제13항에 있어서,
상기 음성 명령에 따른 기능이 실행되도록 제어하는 동작은,
상기 데이터베이스에 포함된 정보에 기반하여, 상기 적어도 하나의 장치가 제3 장치로 식별됨에 따라, 상기 음성 명령에 따른 기능에 관한 정보를 상기 제3 장치로 전송하는 동작을 포함하는,
제어 방법.
The method of claim 13,
The operation of controlling to execute the function according to the voice command,
Based on information included in the database, as the at least one device is identified as a third device, transmitting information on a function according to the voice command to the third device,
Control method.
제13항에 있어서,
상기 방법은,
복수 개의 데이터베이스들 중에서 상기 식별된 서술어에 대응되는 데이터베이스를 선택하는 동작을 더 포함하는,
제어 방법.
The method of claim 13,
The above method,
Further comprising an operation of selecting a database corresponding to the identified predicate from among a plurality of databases,
Control method.
제13항에 있어서,
상기 방법은,
상기 음성 명령을 실행할 장치가 복수 개인 경우,
상기 복수 개의 장치들 중에서 상기 음성 명령에 따른 기능을 실제 실행할 장치에 대하여 사용자 확인을 요청하는 동작을 더 포함하는,
제어 방법.
The method of claim 13,
The above method,
When there are multiple devices to execute the voice command,
Further comprising an operation of requesting user confirmation from a device that will actually execute a function according to the voice command among the plurality of devices,
Control method.
제13항에 있어서,
상기 방법은,
사용자 피드백에 관한 정보가 획득되는 경우,
상기 사용자 피드백에 관한 정보에 기반하여, 상기 서술어에 따라 구분된 복수 개의 데이터베이스를 업데이트하는 동작을 더 포함하는,
제어 방법.
The method of claim 13,
The above method,
When information regarding user feedback is obtained,
Based on the information on the user feedback, further comprising the operation of updating a plurality of databases classified according to the predicate,
Control method.
제13항에 있어서,
상기 방법은,
상기 음성 명령이 매크로로 기 설정되었는지 식별하는 동작;
상기 음성 명령이 매크로로 기 설정된 경우, 상기 기 설정된 매크로에 대응되는 처리 음성 데이터를 획득하는 동작 더 포함하는,
제어 방법.
The method of claim 13,
The above method,
Identifying whether the voice command is preset as a macro;
If the voice command is preset to a macro, further comprising an operation of obtaining processed voice data corresponding to the preset macro,
Control method.
제13항에 있어서,
상기 복수 개의 데이터베이스들은,
동사 데이터베이스 및 형용사 데이터베이스를 포함하고,
상기 동사 데이터베이스에 포함된 정보는,
동사에 대응되는 사용자 요구 사항, 상기 동사에 대응되는 주체 장치 또는 상기 동사에 대응되는 액션 대상 중 적어도 하나를 포함하고,
상기 형용사 데이터베이스에 포함된 정보는,
형용사에 대응되는 사용자 요구 사항, 상기 형용사에 대응되는 지원 가능한 음성 분석 장치, 상기 형용사에 대응되는 지원 가능한 음성 실행 장치 또는 상기 형용사에 대응되는 액션 중 적어도 하나를 포함하는,
제어 방법.
The method of claim 13,
The plurality of databases,
Contains verb database and adjective database,
The information contained in the verb database,
Including at least one of a user requirement corresponding to the verb, a subject device corresponding to the verb, or an action object corresponding to the verb,
The information contained in the adjective database,
Including at least one of a user requirement corresponding to an adjective, a supportable speech analysis device corresponding to the adjective, a supportable speech execution device corresponding to the adjective, or an action corresponding to the adjective,
Control method.
KR1020190093778A 2019-08-01 2019-08-01 Electronic apparatus, and method of controlling to execute function according to voice command thereof KR20210015234A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020190093778A KR20210015234A (en) 2019-08-01 2019-08-01 Electronic apparatus, and method of controlling to execute function according to voice command thereof
US16/936,484 US11620996B2 (en) 2019-08-01 2020-07-23 Electronic apparatus, and method of controlling to execute function according to voice command thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190093778A KR20210015234A (en) 2019-08-01 2019-08-01 Electronic apparatus, and method of controlling to execute function according to voice command thereof

Publications (1)

Publication Number Publication Date
KR20210015234A true KR20210015234A (en) 2021-02-10

Family

ID=74259401

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190093778A KR20210015234A (en) 2019-08-01 2019-08-01 Electronic apparatus, and method of controlling to execute function according to voice command thereof

Country Status (2)

Country Link
US (1) US11620996B2 (en)
KR (1) KR20210015234A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11410646B1 (en) * 2016-09-29 2022-08-09 Amazon Technologies, Inc. Processing complex utterances for natural language understanding
TWI805008B (en) * 2021-10-04 2023-06-11 中華電信股份有限公司 Customized intent evaluation system, method and computer-readable medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001221480A (en) 2000-02-08 2001-08-17 Mitsubishi Heavy Ind Ltd Air conditioner and its controlling method
KR101917182B1 (en) 2012-04-30 2019-01-24 삼성전자주식회사 Image processing apparatus, voice acquiring apparatus, voice recognition method thereof and voice recognition system
US9443005B2 (en) * 2012-12-14 2016-09-13 Instaknow.Com, Inc. Systems and methods for natural language processing
US9772817B2 (en) * 2016-02-22 2017-09-26 Sonos, Inc. Room-corrected voice detection
US10313531B2 (en) * 2016-12-13 2019-06-04 Bullhead Innovations Ltd. Voice controlled room system
KR101889279B1 (en) * 2017-01-16 2018-08-21 주식회사 케이티 System and method for provining sercive in response to voice command
KR101925034B1 (en) 2017-03-28 2018-12-04 엘지전자 주식회사 Smart controlling device and method for controlling the same
JP6997554B2 (en) 2017-08-03 2022-01-17 シャープ株式会社 Home appliance system
WO2019067878A1 (en) * 2017-09-28 2019-04-04 Oracle International Corporation Enabling autonomous agents to discriminate between questions and requests
US11437031B2 (en) * 2019-07-30 2022-09-06 Qualcomm Incorporated Activating speech recognition based on hand patterns detected using plurality of filters

Also Published As

Publication number Publication date
US11620996B2 (en) 2023-04-04
US20210035575A1 (en) 2021-02-04

Similar Documents

Publication Publication Date Title
KR102411766B1 (en) Method for activating voice recognition servive and electronic device for the same
KR102374910B1 (en) Voice data processing method and electronic device supporting the same
KR102445382B1 (en) Voice processing method and system supporting the same
JP6567727B2 (en) User command processing method and system for adjusting output volume of sound output based on input volume of received voice input
KR20210016815A (en) Electronic device for managing a plurality of intelligent agents and method of operating thereof
KR20200073733A (en) Method for executing function and Electronic device using the same
KR102512614B1 (en) Electronic device audio enhancement and method thereof
US11474780B2 (en) Method of providing speech recognition service and electronic device for same
US20200380978A1 (en) Electronic device for executing application by using phoneme information included in audio data and operation method therefor
US20190272459A1 (en) Electronic device and method for controlling external electronic device based on use pattern information corresponding to user
KR20200043642A (en) Electronic device for ferforming speech recognition using microphone selected based on an operation state and operating method thereof
KR102419374B1 (en) Electronic apparatus for processing user utterance for controlling an external electronic apparatus and controlling method thereof
KR102629796B1 (en) An electronic device supporting improved speech recognition
KR20210116897A (en) Method for contolling external device based on voice and electronic device thereof
KR20200045851A (en) Electronic Device and System which provides Service based on Voice recognition
US10976997B2 (en) Electronic device outputting hints in an offline state for providing service according to user context
US11620996B2 (en) Electronic apparatus, and method of controlling to execute function according to voice command thereof
US11361750B2 (en) System and electronic device for generating tts model
KR20210001082A (en) Electornic device for processing user utterance and method for operating thereof
KR20210036527A (en) Electronic device for processing user utterance and method for operating thereof
CN113678119A (en) Electronic device for generating natural language response and method thereof
KR20190142192A (en) Electronic device and Method of controlling thereof
KR102620705B1 (en) Electronic device and operating method thereof
KR20220057249A (en) Electronic apparatus for processing user utterance and controlling method thereof
KR20210059367A (en) Voice input processing method and electronic device supporting the same

Legal Events

Date Code Title Description
A201 Request for examination