KR20210053150A - The hub device, multi device system comprising the hub device and a plurality of devices and method operating the same - Google Patents

The hub device, multi device system comprising the hub device and a plurality of devices and method operating the same Download PDF

Info

Publication number
KR20210053150A
KR20210053150A KR1020200065181A KR20200065181A KR20210053150A KR 20210053150 A KR20210053150 A KR 20210053150A KR 1020200065181 A KR1020200065181 A KR 1020200065181A KR 20200065181 A KR20200065181 A KR 20200065181A KR 20210053150 A KR20210053150 A KR 20210053150A
Authority
KR
South Korea
Prior art keywords
information
hub device
determination model
hub
function determination
Prior art date
Application number
KR1020200065181A
Other languages
Korean (ko)
Other versions
KR102487078B1 (en
Inventor
홍지연
고현목
최성자
편창호
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to CN202080070462.4A priority Critical patent/CN114514575A/en
Priority to PCT/KR2020/015070 priority patent/WO2021086127A1/en
Priority to EP20881858.3A priority patent/EP3980992A4/en
Priority to US17/085,565 priority patent/US11930230B2/en
Publication of KR20210053150A publication Critical patent/KR20210053150A/en
Application granted granted Critical
Publication of KR102487078B1 publication Critical patent/KR102487078B1/en
Priority to US18/397,357 priority patent/US20240129567A1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Acoustics & Sound (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention relates to a hub device, a multidevice system including the hub device and a plurality of devices and an operating method thereof. An embodiment of the present invention provides a hub device and a multidevice system including the hub device. The hub device stores, in an internal memory thereof, at least a portion of a voice assistant model for receiving a user voice input and automatically determining a device to perform an operation according to the intention of a user based on the received voice input and a voice assistant model for providing information necessary to perform a service according to the determined device.

Description

허브 디바이스, 허브 디바이스 및 복수의 디바이스를 포함하는 멀티 디바이스 시스템 및 그 동작 방법 {THE HUB DEVICE, MULTI DEVICE SYSTEM COMPRISING THE HUB DEVICE AND A PLURALITY OF DEVICES AND METHOD OPERATING THE SAME} A multi-device system including a hub device, a hub device, and a plurality of devices, and its operation method {THE HUB DEVICE, MULTI DEVICE SYSTEM COMPRISING THE HUB DEVICE AND A PLURALITY OF DEVICES AND METHOD OPERATING THE SAME}

본 개시는 허브 디바이스 및 복수의 디바이스를 포함하는 멀티 디바이스 환경에서 사용자로부터 수신한 음성 입력에 포함되는 사용자의 의도에 따른 동작을 수행할 동작 수행 디바이스를 결정하기 위한 인공 지능 모델 및 결정된 동작 수행 디바이스가 수행하는 동작을 제어하는 인공 지능 모델을 포함하는 허브 디바이스, 멀티 디바이스 시스템, 및 그 동작 방법에 관한 것이다. The present disclosure provides an artificial intelligence model for determining an operation performing device to perform an operation according to a user's intention included in a voice input received from a user in a multi-device environment including a hub device and a plurality of devices, and a device performing the determined operation. The present invention relates to a hub device including an artificial intelligence model for controlling an operation to be performed, a multi-device system, and an operation method thereof.

멀티 미디어 기술 및 네트워크 기술이 발전함에 따라, 사용자는 디바이스를 이용하여 다양한 서비스를 제공받을 수 있게 되었다. 특히, 음성 인식 기술이 발전함에 따라, 사용자는 디바이스에 음성(예를 들어, 발화)을 입력하고, 서비스 제공 에이전트를 통해 음성 입력에 따른 응답 메시지를 수신할 수 있게 되었다. With the development of multimedia technology and network technology, users can receive various services using devices. In particular, with the development of voice recognition technology, a user can input a voice (eg, speech) to a device and receive a response message according to the voice input through a service providing agent.

하지만, 복수의 디바이스를 포함하는 홈 네트워크 환경 등 멀티 디바이스 시스템에서, 사용자가 음성 입력 등을 통해 대화(interaction)하는 클라이언트 디바이스가 아닌, 다른 디바이스를 통해 서비스를 제공받고 싶은 경우, 서비스를 제공할 디바이스를 직접 선택해야 하는 번거로움이 있다. 특히, 복수의 디바이스 각각이 제공할 수 있는 서비스의 종류가 다르기 때문에, 사용자의 음성 입력에 포함된 의도를 파악하여 효과적으로 서비스를 제공할 수 있는 기술이 요구되고 있다. However, in a multi-device system such as a home network environment including a plurality of devices, when a user wants to receive a service through a device other than a client device that interacts through voice input, the device to provide the service There is a hassle of having to choose directly. In particular, since the types of services that can be provided by each of a plurality of devices are different, there is a demand for a technology capable of effectively providing a service by grasping an intention included in a user's voice input.

사용자의 음성 입력에 포함된 의도를 파악할 때, 인공지능(Artificial Intelligence, AI) 기술이 활용될 수 있으며, 룰(Rule) 기반의 자연어 이해 기술(Natural Language Understanding, NLU)이 활용될 수도 있다. 사용자의 음성 입력을 허브 디바이스(Hub device)를 통해 수신하는 경우, 허브 디바이스는 음성 입력을 통해 서비스를 제공할 디바이스를 직접 선택하지 못하고 별도의 음성 비서 서비스 제공 서버를 이용하여 디바이스를 제어해야 하므로, 사용자의 입장에서는 네트워크 사용 비용이 소비되고, 음성 비서 서비스 제공 서버를 통하므로 응답 속도가 느려지는 문제점이 있다. 상기 문제점을 해결하기 위하여, 허브 디바이스는 음성 입력에 기초하여 서비스를 제공할 디바이스를 제어하는 음성 비서 모델을 내부 메모리에 저장하는 온 디바이스(On device) 모델 방식을 고려할 수 있다. 그러나, 온 디바이스 모델 방식을 구현함에 있어서, 허브 디바이스의 내부 메모리 용량, RAM(Random Access Memory) 잔여 용량, 또는 프로세싱 속도 등에 따라 음성 비서 모델을 저장하지 못할 수도 있다. When grasping the intention included in the user's voice input, artificial intelligence (AI) technology may be used, and rule-based natural language understanding technology (NLU) may be used. When a user's voice input is received through a hub device, the hub device cannot directly select a device to provide a service through voice input and must control the device using a separate voice assistant service providing server. From the user's point of view, there is a problem in that network usage costs are consumed, and response speed is slowed down because the voice assistant service providing server is used. In order to solve the above problem, the hub device may consider an on device model method in which a voice assistant model that controls a device to provide a service based on a voice input is stored in an internal memory. However, in implementing the on-device model method, it may not be possible to store the voice assistant model depending on the internal memory capacity of the hub device, the remaining capacity of the RAM (Random Access Memory), or the processing speed.

본 개시는 허브 디바이스, 허브 디바이스 및 복수의 디바이스를 포함하는 멀티 디바이스 시스템 및 그 동작 방법에 관한 것으로, 보다 구체적으로는 사용자의 음성 입력을 수신하고, 수신된 음성 입력을 기초로 사용자의 의도에 따른 동작을 수행할 디바이스를 자동으로 결정하는 음성 비서 모델 및 결정된 디바이스에 따라 서비스를 수행하기 위하여 필요한 정보들을 제공하는 음성 비서 모델 중 적어도 일부를 허브 디바이스의 내부 메모리에 저장하는 허브 디바이스, 멀티 디바이스 시스템, 및 그 동작 방법을 제공하는 것을 목적으로 한다. The present disclosure relates to a multi-device system including a hub device, a hub device, and a plurality of devices, and a method of operating the same, and more specifically, to receive a user's voice input, and according to the user's intention based on the received voice input. A hub device, a multi-device system, which stores at least some of a voice assistant model that automatically determines a device to perform an operation and a voice assistant model that provides necessary information to perform a service according to the determined device in the internal memory of the hub device, And an operation method thereof.

상술한 기술적 과제를 해결하기 위하여, 본 개시의 일 실시예는 허브 디바이스(Hub device)와 연결되는 신규 디바이스에 대한 정보를 수신하는 단계, 상기 신규 디바이스에 대한 정보를 수신함에 따라, 음성 비서 서버에, 상기 허브 디바이스에 저장된 디바이스 판단 모델에 대한 업데이트를 요청하는 단계, 상기 음성 비서 서버로부터 상기 업데이트된 디바이스 판단 모델을 수신하여 저장하는 단계, 상기 음성 비서 서버에, 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 요청하는 단계, 상기 음성 비서 서버로부터 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 정보를 수신하고, 수신된 정보에 기반하여 상기 기능 판단 모델을 상기 허브 디바이스에 저장할지 여부를 결정하는 단계, 및 상기 기능 판단 모델을 상기 허브 디바이스에 저장하는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델을 저장하는 단계를 포함하는, 허브 디바이스가 디바이스를 제어하는 음성 비서 모델을 저장하는 방법을 제공한다.In order to solve the above-described technical problem, an embodiment of the present disclosure includes the steps of receiving information on a new device connected to a hub device, and in response to receiving the information on the new device, the voice assistant server , Requesting an update of a device determination model stored in the hub device, receiving and storing the updated device determination model from the voice assistant server, a function determination model corresponding to the new device in the voice assistant server Requesting information of, receiving information on a function determination model corresponding to the new device from the voice assistant server, and determining whether to store the function determination model in the hub device based on the received information And storing the function determination model corresponding to the new device when it is determined to store the function determination model in the hub device. do.

예를 들어, 상기 방법은 기능 판단 모델을 상기 허브 디바이스에 저장하지 않는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 액세스(access) 정보를 수신하는 단계를 더 포함할 수 있다. For example, when it is determined not to store the function determination model in the hub device, the method may further include receiving access information for a function determination model corresponding to the new device.

예를 들어, 상기 액세스 정보는 상기 신규 디바이스에 대응하는 기능 판단 모델이 저장된 상기 음성 비서 서버의 식별 정보, 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 상기 음성 비서 서버 내의 상기 기능 판단 모델에 접근할 수 있는 API 정보(Application Programming Interface), 상기 기능 판단 모델의 사용 언어 및 상기 신규 디바이스의 식별 정보 중 적어도 하나를 포함할 수 있다.For example, the access information may include identification information, location information, IP address information (IP address), MAC address (MAC address) of the voice assistant server in which a function determination model corresponding to the new device is stored, and in the voice assistant server. It may include at least one of API information (Application Programming Interface) for accessing the function determination model, a language used for the function determination model, and identification information of the new device.

예를 들어, 상기 기능 판단 모델을 상기 허브 디바이스에 저장할지 여부를 결정하는 단계는, 상기 허브 디바이스의 리소스(resource) 상태 및 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보에 기초하여 판단할 수 있다.For example, determining whether to store the function determination model in the hub device may be determined based on information on a resource state of the hub device and a function determination model corresponding to the new device. .

예를 들어, 상기 허브 디바이스는 사용자 계정에 따라 기 등록된 복수의 디바이스 각각에 관한 리소스 상태 정보에 기초하여, 상기 상기 음성 비서 서버에 의해 결정될 수 있다. For example, the hub device may be determined by the voice assistant server based on resource status information for each of a plurality of devices previously registered according to a user account.

예를 들어, 상기 방법은 허브 디바이스에 로그인된 사용자 계정(user account)에 따라 IoT 서버에 기 등록된 복수의 디바이스 중 적어도 하나의 허브 디바이스 후보(hub device candidate)를 선택하는 단계, 적어도 하나의 허브 디바이스 후보 각각의 사용 이력 정보 및 성능 정보에 기초하여 적어도 하나의 허브 디바이스 후보 중 어느 하나의 디바이스를 결정하는 단계, 및 허브 디바이스를 결정된 디바이스로 대체함으로써, 허브 디바이스를 변경하는 단계를 더 포함할 수 있다. For example, the method includes selecting at least one hub device candidate from among a plurality of devices previously registered in the IoT server according to a user account logged in to the hub device, at least one hub Determining any one of the at least one hub device candidate based on the usage history information and performance information of each of the device candidates, and changing the hub device by replacing the hub device with the determined device. have.

예를 들어, 상기 적어도 하나의 허브 디바이스 후보를 선택하는 단계는 복수의 디바이스 각각의 상시 전원 공급 여부, 컴퓨팅 파워(computing power), 및 전력 소비량 중 적어도 하나에 기초하여 복수의 디바이스 중 상기 적어도 하나의 허브 디바이스 후보를 선택할 수 있다. For example, the selecting of the at least one hub device candidate may include the at least one of the plurality of devices based on at least one of whether the plurality of devices are always powered on, computing power, and power consumption. Hub device candidates can be selected.

예를 들어, 상기 적어도 하나의 허브 디바이스 후보 중 어느 하나의 디바이스를 결정하는 단계는, 허브 디바이스에 저장되어 있는 사용 이력 로그(log) 데이터베이스를 분석함으로써, 허브 디바이스 및 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도에 관한 정보를 획득하는 단계, 허브 디바이스에 저장되어 있는 성능 이력 로그(performance history log) 데이터베이스를 분석함으로써, 허브 디바이스 및 적어도 하나의 허브 디바이스 후보 각각의 사용자의 발화 처리 시간에 관한 정보를 획득하는 단계, 및 허브 디바이스 및 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도 정보 및 발화 처리 시간 정보에 기초하여, 허브 디바이스를 대체할 디바이스를 결정하는 단계를 포함할 수 있다. For example, the determining of any one of the at least one hub device candidate may include analyzing a usage history log database stored in the hub device, thereby Acquiring information on the frequency of use, by analyzing a performance history log database stored in the hub device, obtaining information on the utterance processing time of each user of the hub device and at least one hub device candidate And determining a device to replace the hub device, based on frequency information and speech processing time information of each of the hub device and the at least one hub device candidate.

예를 들어, 상기 복수의 디바이스 중 적어도 하나의 허브 디바이스 후보를 선택하는 단계는, 허브 디바이스와 연결되는 신규 디바이스에 대한 정보를 수신하는 단계 이후에 수행될 수 있다. For example, selecting at least one hub device candidate from among the plurality of devices may be performed after receiving information on a new device connected to the hub device.

예를 들어, 상기 방법은 허브 디바이스에 로그인된 사용자 계정(user account)에 따라 IoT 서버에 기 등록된 복수의 디바이스 중 어느 하나의 디바이스를 선택하는 사용자 입력을 수신하는 단계, 및 사용자 입력에 기초하여 선택된 디바이스를 상기 허브 디바이스로 결정하는 단계를 더 포함할 수 있다. For example, the method includes receiving a user input for selecting any one device among a plurality of devices pre-registered in the IoT server according to a user account logged in to the hub device, and based on the user input. It may further include determining the selected device as the hub device.

상술한 기술적 과제를 해결하기 위하여, 본 개시의 일 실시예는 복수의 디바이스, 음성 비서 서버, 및 IoT 서버 중 적어도 하나와 데이터 통신을 수행하는 통신 인터페이스, 하나 이상의 명령어들(instructions)을 포함하는 프로그램을 저장하는 메모리, 및 상기 메모리에 저장된 프로그램의 하나 이상의 명령어들을 실행하는 프로세서를 포함하고, 상기 프로세서는 허브 디바이스와 연결되는 신규 디바이스에 대한 정보를 수신하고, 상기 신규 디바이스에 대한 정보를 수신함에 따라, 상기 음성 비서 서버에 상기 메모리에 기 저장된 디바이스 판단 모델에 대한 업데이트를 요청하고, 상기 음성 비서 서버로부터 상기 업데이트된 디바이스 판단 모델을 수신하도록 상기 통신 인터페이스를 제어하고, 수신된 상기 업데이트된 디바이스 판단 모델을 상기 메모리에 저장하고, 상기 음성 비서 서버에, 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 요청하고, 상기 음성 비서 서버로부터 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 정보를 수신하도록 상기 통신 인터페이스를 제어하고, 수신된 상기 정보에 기반하여 상기 기능 판단 모델을 상기 허브 디바이스에 저장할지 여부를 결정하고, 상기 기능 판단 모델을 상기 허브 디바이스에 저장하는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델을 상기 메모리에 저장하는, 허브 디바이스를 제공한다.In order to solve the above technical problem, an embodiment of the present disclosure is a communication interface for performing data communication with at least one of a plurality of devices, a voice assistant server, and an IoT server, and a program including one or more instructions. And a processor that executes one or more instructions of a program stored in the memory, and the processor receives information on a new device connected to the hub device, and receives information on the new device. , Requesting the voice assistant server to update a device determination model previously stored in the memory, controlling the communication interface to receive the updated device determination model from the voice assistant server, and receiving the updated device determination model The communication to store information on a function determination model corresponding to the new device from the voice assistant server, and to request information on a function determination model corresponding to the new device from the voice assistant server. When it is determined whether to control the interface and to store the function determination model in the hub device based on the received information, and when it is determined to store the function determination model in the hub device, a function corresponding to the new device A hub device is provided for storing a judgment model in the memory.

예를 들어, 상기 프로세서는 상기 기능 판단 모델을 상기 허브 디바이스에 저장하지 않는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 액세스(access) 정보를 수신하도록 상기 통신 인터페이스를 제어할 수 있다. For example, when it is determined not to store the function determination model in the hub device, the processor may control the communication interface to receive access information for a function determination model corresponding to the new device. .

예를 들어, 상기 액세스 정보는 상기 신규 디바이스에 대응하는 기능 판단 모델이 저장된 상기 음성 비서 서버의 식별 정보, 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 상기 음성 비서 서버 내의 상기 기능 판단 모델에 접근할 수 있는 API 정보(Application Programming Interface), 상기 기능 판단 모델의 사용 언어 및 상기 신규 디바이스의 식별 정보 중 적어도 하나를 포함할 수 있다. For example, the access information may include identification information, location information, IP address information (IP address), MAC address (MAC address) of the voice assistant server in which a function determination model corresponding to the new device is stored, and in the voice assistant server. It may include at least one of API information (Application Programming Interface) for accessing the function determination model, a language used for the function determination model, and identification information of the new device.

예를 들어, 상기 프로세서는 상기 허브 디바이스의 리소스 상태 및 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보에 기초하여, 상기 기능 판단 모델을 상기 메모리에 저장할지 여부를 결정할 수 있다. For example, the processor may determine whether to store the function determination model in the memory based on the resource state of the hub device and information on a function determination model corresponding to the new device.

예를 들어, 상기 허브 디바이스는 사용자 계정에 따라 기 등록된 복수의 디바이스 각각에 관한 리소스 상태 정보에 기초하여, 상기 상기 음성 비서 서버에 의해 결정될 수 있다. For example, the hub device may be determined by the voice assistant server based on resource status information for each of a plurality of devices previously registered according to a user account.

예를 들어, 상기 프로세서는 허브 디바이스에 로그인된 사용자 계정(user id)에 따라 IoT 서버에 기 등록된 복수의 디바이스 중 적어도 하나의 허브 디바이스 후보(hub device candidate)를 선택하고, 적어도 하나의 허브 디바이스 후보 각각의 사용 이력 정보 및 성능 정보에 기초하여 적어도 하나의 허브 디바이스 후보 중 어느 하나의 디바이스를 결정하고, 허브 디바이스를 결정된 디바이스로 대체함으로써, 허브 디바이스를 변경할 수 있다. For example, the processor selects at least one hub device candidate from among a plurality of devices pre-registered in the IoT server according to a user account logged in to the hub device, and at least one hub device The hub device may be changed by determining any one of at least one hub device candidate based on usage history information and performance information of each of the candidates, and replacing the hub device with the determined device.

예를 들어, 상기 프로세서는 복수의 디바이스 각각의 상시 전원 공급 여부, 컴퓨팅 파워(computing power), 및 전력 소비량 중 적어도 하나에 기초하여 복수의 디바이스 중 적어도 하나의 허브 디바이스 후보를 선택할 수 있다. For example, the processor may select at least one hub device candidate from among a plurality of devices based on at least one of whether power is always supplied to each of the plurality of devices, computing power, and power consumption.

예를 들어, 상기 허브 디바이스는, 허브 디바이스 및 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도에 관한 정보를 저장하는 사용 이력 로그 데이터베이스, 및 허브 디바이스 및 적어도 하나의 허브 디바이스 후보 각각의 사용자의 발화 처리 시간에 관한 정보를 저장하는 성능 이력 로그(performance history log) 데이터베이스를 더 포함할 수 있다. For example, the hub device may include a usage history log database that stores information on a frequency of use of each of the hub device and at least one hub device candidate, and an utterance processing time of each user of the hub device and at least one hub device candidate. It may further include a performance history log database for storing information about the.

예를 들어, 상기 프로세서는 사용 이력 로그 데이터베이스를 분석함으로써 허브 디바이스 및 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도에 관한 정보를 획득하고, 성능 이력 로그 데이터베이스를 분석함으로써, 허브 디바이스 및 적어도 하나의 허브 디바이스 후보 각각의 사용자의 발화 처리 시간에 관한 정보를 획득하고, 허브 디바이스 및 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도 정보 및 발화 처리 시간 정보에 기초하여, 허브 디바이스를 대체할 디바이스를 결정할 수 있다. For example, the processor obtains information on the frequency of use of each of the hub device and at least one hub device candidate by analyzing the usage history log database, and analyzes the performance history log database, so that the hub device and at least one hub device Information about the speech processing time of each of the candidate users may be obtained, and a device to replace the hub device may be determined based on the frequency information and the speech processing time information of the hub device and each of the at least one hub device candidate.

예를 들어, 상기 허브 디바이스는, 허브 디바이스에 로그인된 사용자 계정에 따라 IoT 서버에 기 등록된 복수의 디바이스 중 어느 하나의 디바이스를 선택하는 사용자의 음성 입력을 수신하는 음성 입력부를 더 포함하고, 상기 프로세서는, ASR(Automatic Speech Recognition)을 수행함으로써, 음성 입력부로부터 수신한 사용자의 음성 입력을 텍스트로 변환하고, NLU 모델(Natural Language Understanding model)을 이용하여 변환된 텍스트를 해석함으로써, 사용자의 음성 입력에 따라 선택된 디바이스를 허브 디바이스로 결정할 수 있다. For example, the hub device further includes a voice input unit for receiving a user's voice input for selecting any one of a plurality of devices pre-registered in the IoT server according to a user account logged in to the hub device, the The processor converts the user's voice input received from the voice input unit into text by performing ASR (Automatic Speech Recognition), and interprets the converted text using the NLU model (Natural Language Understanding model) to input the user's voice. According to this, the selected device may be determined as a hub device.

상술한 기술적 과제를 해결하기 위하여, 본 개시의 일 실시예는 허브 디바이스가, 신규 디바이스에 대한 정보를 수신함에 따라, 음성 비서 서버에 상기 허브 디바이스에 저장된 디바이스 판단 모델에 대한 업데이트를 요청하는 단계, 상기 음성 비서 서버는 상기 디바이스 판단 모델에 대한 업데이트 요청을 수신함에 따라, 상기 허브 디바이스에 저장된 디바이스 판단 모델에 대한 업데이트를 수행하는 단계, 상기 허브 디바이스는 상기 음성 비서 서버로부터 상기 업데이트된 디바이스 판단 모델을 수신하여 저장하는 단계, 상기 허브 디바이스는 상기 음성 비서 서버에 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 요청하는 단계, 상기 음성 비서 서버는 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 획득하여 상기 허브 디바이스로 전송하는 단계, 및 상기 허브 디바이스는 상기 음성 비서 서버로부터 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 정보를 수신하고, 수신된 정보에 기반하여 상기 기능 판단 모델을 상기 허브 디바이스에 저장할지 여부를 결정하는 단계를 포함하는, 음성 비서 서버와 허브 디바이스가 디바이스를 제어하는 음성 비서 모델을 저장하는 방법을 제공한다. In order to solve the above technical problem, according to an embodiment of the present disclosure, as a hub device receives information on a new device, requesting an update of a device determination model stored in the hub device from a voice assistant server, When the voice assistant server receives an update request for the device determination model, performing an update on the device determination model stored in the hub device, the hub device receiving the updated device determination model from the voice assistant server. Receiving and storing, the hub device requesting information of a function determination model corresponding to the new device from the voice assistant server, the voice assistant server obtaining information of a function determination model corresponding to the new device Transmitting to the hub device, and the hub device receiving information on a function determination model corresponding to the new device from the voice assistant server, and storing the function determination model in the hub device based on the received information It provides a method of storing a voice assistant model in which a voice assistant server and a hub device control a device, comprising the step of determining whether to do so.

예를 들어, 상기 방법은 상기 허브 디바이스가 상기 기능 판단 모델을 상기 허브 디바이스에 저장하는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델을 저장하는 단계를 더 포함할 수 있다. For example, the method may further include storing a function determination model corresponding to the new device when it is determined that the hub device stores the function determination model in the hub device.

예를 들어, 상기 방법은, 상기 허브 디바이스가 상기 기능 판단 모델을 상기 허브 디바이스에 저장하지 않는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 액세스 정보를 상기 음성 비서 서버에 요청하여 수신하는 단계를 더 포함할 수 있다. For example, the method, when it is determined that the hub device does not store the function determination model in the hub device, requests and receives access information for the function determination model corresponding to the new device to the voice assistant server It may further include the step of.

예를 들어, 상기 액세스 정보는 상기 신규 디바이스에 대응하는 기능 판단 모델이 저장된 상기 음성 비서 서버의 식별 정보, 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 상기 음성 비서 서버 내의 상기 기능 판단 모델에 접근할 수 있는 API 정보(Application Programming Interface), 상기 기능 판단 모델의 사용 언어 및 상기 신규 디바이스의 식별 정보 중 적어도 하나를 포함할 수 있다. For example, the access information may include identification information, location information, IP address information (IP address), MAC address (MAC address) of the voice assistant server in which a function determination model corresponding to the new device is stored, and in the voice assistant server. It may include at least one of API information (Application Programming Interface) for accessing the function determination model, a language used for the function determination model, and identification information of the new device.

예를 들어, 상기 허브 디바이스는 사용자 계정에 따라 기 등록된 복수의 디바이스 각각에 관한 리소스 상태 정보에 기초하여, 상기 상기 음성 비서 서버에 의해 결정될 수 있다. For example, the hub device may be determined by the voice assistant server based on resource status information for each of a plurality of devices previously registered according to a user account.

상술한 기술적 과제를 해결하기 위하여, 본 개시의 일 실시예는 허브 디바이스 및 음성 비서 서버를 포함하는 시스템을 제공한다. 상기 허브 디바이스는 상기 음성 비서 서버와 데이터 통신을 수행하는 통신 인터페이스, 하나 이상의 명령어들(instructions)을 포함하는 프로그램을 저장하는 메모리, 및 상기 메모리에 저장된 프로그램의 하나 이상의 명령어들을 실행하는 프로세서를 포함하고, 상기 프로세서는 상기 신규 디바이스에 대한 정보를 수신하고, 상기 음성 비서 서버에 상기 메모리에 기 저장된 디바이스 판단 모델에 대한 업데이트를 요청하도록 상기 통신 인터페이스를 제어하고, 상기 음성 비서 서버로부터 상기 업데이트된 디바이스 판단 모델을 수신하고, 수신된 상기 업데이트된 디바이스 판단 모델을 상기 메모리에 저장하고, 상기 음성 비서 서버에 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 요청하고, 상기 음성 비서 서버로부터 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 정보를 수신하도록 상기 통신 인터페이스를 제어하고, 수신된 상기 정보에 기반하여 상기 기능 판단 모델을 상기 허브 디바이스에 저장할지 여부를 결정하고, 상기 음성 비서 서버는 상기 허브 디바이스로부터 상기 디바이스 판단 모델에 대한 업데이트 요청을 수신함에 따라, 상기 허브 디바이스에 기 저장된 디바이스 판단 모델에 대한 업데이트를 수행하고, 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 획득하여 상기 허브 디바이스로 전송할 수 있다. In order to solve the above technical problem, an embodiment of the present disclosure provides a system including a hub device and a voice assistant server. The hub device includes a communication interface for performing data communication with the voice assistant server, a memory for storing a program including one or more instructions, and a processor for executing one or more instructions of a program stored in the memory, , The processor receives information on the new device, controls the communication interface to request an update of a device determination model previously stored in the memory from the voice assistant server, and determines the updated device from the voice assistant server Receiving a model, storing the received updated device determination model in the memory, requesting information on a function determination model corresponding to the new device from the voice assistant server, and responding to the new device from the voice assistant server The communication interface is controlled to receive information on a function determination model to be performed, and based on the received information, it is determined whether to store the function determination model in the hub device, and the voice assistant server Upon receiving an update request for a device determination model, an update to a device determination model previously stored in the hub device may be performed, and information on a function determination model corresponding to the new device may be obtained and transmitted to the hub device.

예를 들어, 상기 프로세서는 상기 기능 판단 모델을 상기 허브 디바이스에 저장하는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델을 상기 메모리에 저장할 수 있다. For example, when it is determined to store the function determination model in the hub device, the processor may store a function determination model corresponding to the new device in the memory.

예를 들어, 상기 프로세서는 상기 기능 판단 모델을 상기 허브 디바이스에 저장하지 않는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 액세스 정보를 상기 음성 비서 서버에 요청하고, 상기 액세스 정보를 상기 음성 비서 서버로부터 수신하도록 상기 통신 인터페이스를 제어할 수 있다. For example, when it is determined not to store the function determination model in the hub device, the processor requests access information for a function determination model corresponding to the new device to the voice assistant server, and the access information The communication interface can be controlled to receive from a voice assistant server.

예를 들어, 상기 액세스 정보는 상기 신규 디바이스에 대응하는 기능 판단 모델이 저장된 상기 음성 비서 서버의 식별 정보, 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 상기 음성 비서 서버 내의 상기 기능 판단 모델에 접근할 수 있는 API 정보(Application Programming Interface), 상기 기능 판단 모델의 사용 언어 및 상기 신규 디바이스의 식별 정보 중 적어도 하나를 포함할 수 있다. For example, the access information may include identification information, location information, IP address information (IP address), MAC address (MAC address) of the voice assistant server in which a function determination model corresponding to the new device is stored, and in the voice assistant server. It may include at least one of API information (Application Programming Interface) for accessing the function determination model, a language used for the function determination model, and identification information of the new device.

예를 들어, 상기 허브 디바이스는 사용자 계정에 따라 기 등록된 복수의 디바이스 각각에 관한 리소스 상태 정보에 기초하여, 상기 상기 음성 비서 서버에 의해 결정될 수 있다. For example, the hub device may be determined by the voice assistant server based on resource status information for each of a plurality of devices previously registered according to a user account.

본 개시는, 다음의 자세한 설명과 그에 수반되는 도면들의 결합으로 쉽게 이해될 수 있으며, 참조 번호(reference numerals)들은 구조적 구성요소(structural elements)를 의미한다.
도 1은 본 개시의 일 실시예에 따른 허브 디바이스, 음성 비서 서버, IoT 서버, 및 복수의 디바이스를 포함하는 멀티 디바이스 시스템의 일부 구성 요소를 도시한 블록도이다.
도 2는 본 개시의 일 실시예에 따른 허브 디바이스의 구성 요소를 도시한 블록도이다.
도 3은 본 개시의 일 실시예에 따른 음성 비서 서버의 구성 요소를 도시한 블록도이다.
도 4는 본 개시의 일 실시예에 따른 IoT 서버의 구성 요소를 도시한 블록도이다.
도 5는 본 개시의 일 실시예에 따른 복수의 디바이스의 일부 구성 요소를 도시한 블록도이다.
도 6은 본 개시의 허브 디바이스가 음성 비서 서버로부터 음성 비서 모델의 적어도 일부를 수신하여 저장하는 방법을 도시한 흐름도이다.
도 7은 본 개시의 허브 디바이스가 음성 비서 서버로부터 수신한 기능 판단 모델의 정보에 기초하여, 기능 판단 모델을 저장할 지 여부를 결정하는 방법을 도시한 흐름도이다.
도 8은 본 개시의 허브 디바이스가 사용자의 음성 입력에 기초하여 신규 디바이스의 동작을 제어하는 방법을 도시한 흐름도이다.
도 9는 본 개시의 허브 디바이스, 음성 비서 서버, IoT 서버, 및 신규 디바이스 각각의 동작 방법을 도시한 흐름도이다.
도 10은 본 개시의 허브 디바이스 및 신규 디바이스의 동작 방법을 도시한 흐름도이다.
도 11은 본 개시의 허브 디바이스, 음성 비서 서버, IoT 서버, 및 신규 디바이스 각각의 동작 방법을 도시한 흐름도이다.
도 12a는 본 개시의 허브 디바이스 및 리스너 디바이스의 동작을 도시한 개념도이다.
도 12b는 본 개시의 허브 디바이스 및 제2 디바이스의 동작을 도시한 개념도이다.
도 13은 본 개시의 일 실시예에 따른 허브 디바이스의 구성 요소를 도시한 블록도이다.
도 14는 본 개시의 일 실시예에 따른 허브 디바이스의 동작 방법을 도시한 흐름도이다.
도 15는 본 개시의 일 실시예에 따른 허브 디바이스의 동작 방법을 도시한 흐름도이다.
도 16은 본 개시의 일 실시예에 따른 허브 디바이스의 동작 방법을 도시한 흐름도이다.
도 17은 허브 디바이스, 음성 비서 서버, 및 복수의 디바이스를 포함하는 멀티 디바이스 시스템 환경을 도시한 도면이다.
도 18a 및 도 18b는 본 개시의 허브 디바이스 및 음성 비서 서버에서 실행 가능한 음성비서 모델의 실시예를 도시한 도면이다.
The present disclosure may be easily understood by a combination of the following detailed description and accompanying drawings, and reference numerals denote structural elements.
1 is a block diagram illustrating some components of a multi-device system including a hub device, a voice assistant server, an IoT server, and a plurality of devices according to an embodiment of the present disclosure.
2 is a block diagram illustrating components of a hub device according to an embodiment of the present disclosure.
3 is a block diagram illustrating components of a voice assistant server according to an embodiment of the present disclosure.
4 is a block diagram illustrating components of an IoT server according to an embodiment of the present disclosure.
5 is a block diagram illustrating some components of a plurality of devices according to an embodiment of the present disclosure.
6 is a flowchart illustrating a method of receiving and storing at least a part of a voice assistant model from a voice assistant server by a hub device of the present disclosure.
7 is a flowchart illustrating a method of determining whether to store a function determination model based on information on a function determination model received from a voice assistant server by the hub device of the present disclosure.
8 is a flowchart illustrating a method of controlling an operation of a new device based on a user's voice input by the hub device of the present disclosure.
9 is a flowchart illustrating a method of operating each of a hub device, a voice assistant server, an IoT server, and a new device according to the present disclosure.
10 is a flowchart illustrating a method of operating a hub device and a new device according to the present disclosure.
11 is a flowchart illustrating a method of operating each of a hub device, a voice assistant server, an IoT server, and a new device of the present disclosure.
12A is a conceptual diagram illustrating an operation of a hub device and a listener device according to the present disclosure.
12B is a conceptual diagram illustrating an operation of a hub device and a second device according to the present disclosure.
13 is a block diagram illustrating components of a hub device according to an embodiment of the present disclosure.
14 is a flowchart illustrating a method of operating a hub device according to an embodiment of the present disclosure.
15 is a flowchart illustrating a method of operating a hub device according to an embodiment of the present disclosure.
16 is a flowchart illustrating a method of operating a hub device according to an embodiment of the present disclosure.
17 is a diagram illustrating a multi-device system environment including a hub device, a voice assistant server, and a plurality of devices.
18A and 18B are diagrams illustrating an embodiment of a voice assistant model executable in a hub device and a voice assistant server of the present disclosure.

본 명세서의 실시예들에서 사용되는 용어는 본 개시의 기능을 고려하면서 가능한 현재 널리 사용되는 일반적인 용어들을 선택하였으나, 이는 당 분야에 종사하는 기술자의 의도 또는 판례, 새로운 기술의 출현 등에 따라 달라질 수 있다. 또한, 특정한 경우는 출원인이 임의로 선정한 용어도 있으며, 이 경우 해당되는 실시예의 설명 부분에서 상세히 그 의미를 기재할 것이다. 따라서 본 명세서에서 사용되는 용어는 단순한 용어의 명칭이 아닌, 그 용어가 가지는 의미와 본 개시의 전반에 걸친 내용을 토대로 정의되어야 한다. The terms used in the embodiments of the present specification have selected general terms that are currently widely used as possible while considering the functions of the present disclosure, but this may vary according to the intention or precedent of a technician working in the field, the emergence of new technologies, etc. . In addition, in certain cases, there are terms arbitrarily selected by the applicant, and in this case, the meaning of the terms will be described in detail in the description of the corresponding embodiment. Therefore, the terms used in the present specification should be defined based on the meaning of the term and the contents of the present disclosure, not the name of a simple term.

단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함할 수 있다. 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 용어들은 본 명세서에 기재된 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가질 수 있다. Singular expressions may include plural expressions unless the context clearly indicates otherwise. Terms used herein, including technical or scientific terms, may have the same meaning as commonly understood by one of ordinary skill in the technical field described herein.

명세서 전체에서 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있음을 의미한다. 또한, 명세서에 기재된 "...부", "...모듈" 등의 용어는 적어도 하나의 기능이나 동작을 처리하는 단위를 의미하며, 이는 하드웨어 또는 소프트웨어로 구현되거나 하드웨어와 소프트웨어의 결합으로 구현될 수 있다.When a part of the specification is said to "include" a certain component, it means that other components may be further included rather than excluding other components unless specifically stated to the contrary. In addition, terms such as "... unit" and "... module" described in the specification mean a unit that processes at least one function or operation, which is implemented as hardware or software, or as a combination of hardware and software. Can be.

본 명세서에서 사용된 표현 "~하도록 구성된(또는 설정된)(configured to)"은 상황에 따라, 예를 들면, "~에 적합한(suitable for)", "~하는 능력을 가지는(having the capacity to)", "~하도록 설계된(designed to)", "~하도록 변경된(adapted to)", "~하도록 만들어진(made to)", 또는 "~를 할 수 있는(capable of)"과 바꾸어 사용될 수 있다. 용어 "~하도록 구성된(또는 설정된)"은 하드웨어적으로 "특별히 설계된(specifically designed to)" 것만을 반드시 의미하지 않을 수 있다. 대신, 어떤 상황에서는, "~하도록 구성된 시스템"이라는 표현은, 그 시스템이 다른 장치 또는 부품들과 함께 "~할 수 있는" 것을 의미할 수 있다. 예를 들면, 문구 "A, B, 및 C를 수행하도록 구성된(또는 설정된) 프로세서"는 해당 동작을 수행하기 위한 전용 프로세서(예: 임베디드 프로세서), 또는 메모리에 저장된 하나 이상의 소프트웨어 프로그램들을 실행함으로써, 해당 동작들을 수행할 수 있는 범용 프로세서(generic-purpose processor)(예: CPU 또는 application processor)를 의미할 수 있다.The expression "configured to (configured to)" used in this specification is, for example, "suitable for", "having the capacity to" depending on the situation. It can be used interchangeably with ", "designed to", "adapted to", "made to", or "capable of". The term "configured to (or set)" may not necessarily mean only "specifically designed to" in hardware. Instead, in some situations, the expression "a system configured to" may mean that the system "can" along with other devices or parts. For example, the phrase “a processor configured (or configured) to perform A, B, and C” means a dedicated processor (eg, an embedded processor) for performing the operation, or by executing one or more software programs stored in memory, It may mean a generic-purpose processor (eg, a CPU or an application processor) capable of performing corresponding operations.

본 명세서에서 '제1 자연어 이해 모델'은 음성 입력으로부터 변환된 텍스트를 분석하고, 분석 결과에 기초하여 동작 수행 디바이스를 결정하도록 학습된 모델이다. 제1 자연어 이해 모델은 텍스트를 해석함으로써, 인텐트를 결정할 수 있으며, 인텐트에 기초하여 동작 수행 디바이스를 결정하는데 이용될 수 있다. In this specification, the'first natural language understanding model' is a model that is trained to analyze text converted from a voice input and determine a device for performing an operation based on the analysis result. The first natural language understanding model may determine an intent by interpreting the text, and may be used to determine a device for performing an operation based on the intent.

본 명세서에서 '제2 자연어 이해 모델'은 특정 디바이스와 관련된 텍스트를 분석하기 위하여 학습된 모델이다. 제2 자연어 이해 모델은 텍스트의 적어도 일부를 해석함으로써, 대응되는 디바이스가 수행할 동작에 관한 동작 정보를 획득하도록 학습된 모델일 수 있다. 제2 자연어 이해 모델의 저장 용량은 제1 자연어 이해 모델의 저장 용량에 비해 클 수 있다.In this specification, the'second natural language understanding model' is a model learned to analyze text related to a specific device. The second natural language understanding model may be a model that is trained to obtain motion information about an action to be performed by a corresponding device by analyzing at least a portion of the text. The storage capacity of the second natural language understanding model may be larger than that of the first natural language understanding model.

본 명세서에서 '음성 비서 모델'은 디바이스 판단 모델 및 기능 판단 모델을 포함할 수 있다. '디바이스 판단 모델'은 제1 자연어 이해 모델에 의해 분석된 텍스트 분석 결과에 기초하여, 사용자 계정에 따라 기 등록된 복수의 디바이스 중 동작 수행 디바이스를 결정하도록 학습된 모델이다. 디바이스 판단 모델은 제1 자연어 이해 모델을 포함할 수 있다. '기능 판단 모델'은 디바이스가 판단된 기능에 따른 동작을 수행하기 위한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용하는 모델이다. 기능 판단 모델은 제2 자연어 이해 모델 및 액션 플랜 관리 모델을 포함할 수 있다. In the present specification, the'voice assistant model' may include a device determination model and a function determination model. The'device determination model' is a model that is trained to determine an operation performing device among a plurality of devices previously registered according to a user account based on a text analysis result analyzed by the first natural language understanding model. The device determination model may include a first natural language understanding model. The'function determination model' is a model used by the device to obtain detailed operations for performing an operation according to the determined function and operation information regarding a relationship between the detailed operations. The function determination model may include a second natural language understanding model and an action plan management model.

본 명세서에서 '액션 플랜 관리 모델'은 동작 수행 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 생성하기 위하여 디바이스의 세부 동작에 관련된 동작 정보를 관리하도록 학습된 모델일 수 있다. 액션 플랜 관리 모델은, 디바이스 타입 별로 디바이스의 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 관리할 수 있다. In the present specification, the'action plan management model' may be a model trained to manage operation information related to the detailed operation of the device in order to generate detailed operations to be performed by the operation performing device and an execution order of the detailed operations. The action plan management model may manage detailed operations of a device for each device type and operation information regarding a relationship between the detailed operations.

본 명세서에서 '인텐트'는 텍스트를 해석하여 판단되는 사용자의 의도를 나타내는 정보이다. 인텐트는 사용자의 발화 의도를 나타내는 정보로, 사용자가 요청한 동작 수행 디바이스의 동작을 나타내는 정보일 수 있다. 인텐트는 자연어 이해 모델(Natural Language Understanding, NLU) 모델을 이용하여 텍스트를 해석함으로써 결정될 수 있다. 예를 들어, 사용자의 음성 입력으로부터 변환된 텍스트가 "TV에서 영화 어벤져스 틀어줘"인 경우, 인텐트는 "컨텐트 재생"일 수 있다. 다른 예를 들어, 사용자의 음성 입력으로부터 변환된 텍스트가 "에어컨 온도를 18°C로 내려줘"인 경우, 인텐트는 "온도 제어"일 수 있다. In this specification, the'intent' is information indicating the intention of the user determined by interpreting the text. The intent is information indicating the intention of the user to speak, and may be information indicating the operation of the device performing the operation requested by the user. The intent may be determined by interpreting the text using a Natural Language Understanding (NLU) model. For example, if the text converted from the user's voice input is "Play Movie Avengers on TV", the intent may be "Play content". For another example, when the text converted from the user's voice input is "Turn down the air conditioner temperature to 18°C", the intent may be "temperature control".

인텐트는, 사용자의 발화 의도를 나타내는 정보(이하, 의도 정보)뿐 아니라, 사용자의 의도를 나타내는 정보에 대응하는 수치값을 포함할 수 있다. 수치값은, 텍스트가 특정 의도를 나타내는 정보와 관련된 확률을 나타낼 수 있다. 자연어 이해 모델을 이용하여 텍스트를 해석한 결과, 사용자의 의도를 나타내는 정보가 복수 개 획득되는 경우, 각 의도 정보에 대응되는 수치값이 최대인 의도 정보가 인텐트로 결정될 수 있다. The intent may include not only information indicating the user's utterance intention (hereinafter, intention information), but also a numerical value corresponding to information indicating the user's intention. The numerical value may indicate a probability that the text is associated with information indicating a specific intent. When a plurality of pieces of information indicating the user's intention are obtained as a result of analyzing the text using the natural language understanding model, intention information having a maximum numerical value corresponding to each intention information may be determined as the intent.

본 명세서에서, 디바이스의 '동작'은, 디바이스에서 특정 기능을 실행함으로써, 디바이스가 수행하는 적어도 하나의 액션을 의미할 수 있다. 동작은 디바이스에서 애플리케이션을 실행함으로써, 디바이스가 수행하는 적어도 하나의 액션을 나타낼 수 있다. 동작은 예를 들어, 디바이스가 애플리케이션의 실행을 통해 수행하는 동영상 재생(play), 음악 재생, 이메일 작성, 날씨 정보 수신, 뉴스 정보 표시, 게임 실행 및 사진 촬영 등을 나타낼 수 있다. 다만, 동작이 전술한 예시로 한정되지는 않는다.In this specification, the'action' of the device may mean at least one action performed by the device by executing a specific function in the device. The operation may represent at least one action performed by the device by executing an application on the device. The operation may represent, for example, playing a video, playing music, writing an email, receiving weather information, displaying news information, executing a game, and taking a picture, etc. performed by the device through execution of an application. However, the operation is not limited to the above-described example.

디바이스의 동작은 액션 플랜 관리 모델에서 출력한 세부 동작에 관한 정보에 기초하여 수행될 수 있다. 디바이스는, 액션 플랜 관리 모델에서 출력한 세부 동작에 대응하는 기능을 실행함으로써, 적어도 하나의 액션을 수행할 수 있다. 디바이스는, 세부 동작에 대응하는 기능을 실행하기 위한 명령어를 저장할 수 있으며, 세부 동작이 결정되면 세부 동작에 대응하는 명령어를 결정하여 명령어를 실행함으로써 특정 기능을 실행할 수 있다.The operation of the device may be performed based on information on detailed operations output from the action plan management model. The device may perform at least one action by executing a function corresponding to the detailed operation output from the action plan management model. The device may store a command for executing a function corresponding to a detailed operation, and when a detailed operation is determined, the device may execute a specific function by determining a command corresponding to the detailed operation and executing the command.

또한, 디바이스는 세부 동작에 대응하는 애플리케이션을 실행하기 위한 명령어를 저장할 수 있다. 애플리케이션을 실행하기 위한 명령어는, 애플리케이션 자체를 실행하기 위한 명령어 및 애플리케이션을 구성하는 세부 기능을 실행하기 위한 명령어를 포함할 수 있다. 디바이스는 세부 동작이 결정되면 세부 동작에 대응하는 애플리케이션을 실행하기 위한 명령어를 실행함으로써 애플리케이션을 실행하고, 세부 동작에 대응하는 애플리케이션의 세부 기능을 실행하기 위한 명령어를 실행함으로써 세부 기능을 실행할 수 있다.Also, the device may store a command for executing an application corresponding to a detailed operation. The command for executing the application may include a command for executing the application itself and a command for executing detailed functions constituting the application. When a detailed operation is determined, the device may execute an application by executing a command for executing an application corresponding to the detailed operation, and execute a detailed function by executing a command for executing a detailed function of the application corresponding to the detailed operation.

본 명세서에서 '동작 정보'는, 디바이스가 수행할 세부 동작들, 각 세부 동작들과 다른 세부 동작과의 연관 관계, 및 세부 동작들의 실행 순서에 관련된 정보일 수 있다. 각 세부 동작과 다른 세부 동작과의 연관 관계는, 하나의 동작을 실행하기 위해서 그 동작을 실행하기 전에 필수적으로 실행되어야 할 다른 동작에 대한 정보를 포함한다. 예를 들어, 수행할 동작이 "음악 재생"인 경우, "전원 온(on)"은 "음악 재생" 동작 이전에 필수적으로 실행되어야 하는 다른 세부 동작이 될 수 있다. 동작 정보는 예를 들어, 특정 동작의 수행을 위하여 동작 수행 디바이스가 실행해야 할 기능들, 기능들의 실행 순서, 기능들을 실행하기 위하여 필요한 입력 값 및 기능들의 실행 결과로서 출력되는 출력 값을 포함할 수 있으나, 이에 한정되지 않는다.In the present specification,'action information' may be information related to detailed operations to be performed by the device, a relationship between each detailed operation and other detailed operations, and an execution order of the detailed operations. The relationship between each detailed operation and another detailed operation includes information on another operation that must be performed before executing the operation in order to execute one operation. For example, when the operation to be performed is “music playback”, “power on” may be another detailed operation that must be essentially executed before the “music playback” operation. The operation information may include, for example, functions to be executed by the operation performing device in order to perform a specific operation, an execution order of functions, an input value required to execute the functions, and an output value output as a result of execution of the functions. However, it is not limited thereto.

본 명세서에서 '동작 수행 디바이스'는 복수의 디바이스 중 텍스트로부터 획득된 인텐트에 기초하여 동작을 수행하도록 결정된 디바이스를 의미한다. 동작 수행 디바이스는 제1 자연어 이해 모델을 이용하여 텍스트를 분석하고, 분석된 결과에 기초하여 결정될 수 있다. 동작 수행 디바이스는 액션 플랜 관리 모델로부터 출력된 세부 동작에 대응하는 기능을 실행함으로써, 적어도 하나의 액션을 수행할 수 있다. 동작 수행 디바이스는 동작 정보에 기초하여 동작을 수행할 수 있다. In the present specification, the'operation performing device' refers to a device determined to perform an operation based on an intent obtained from a text among a plurality of devices. The operation performing device may analyze the text using the first natural language understanding model, and may be determined based on the analyzed result. The operation performing device may perform at least one action by executing a function corresponding to the detailed operation output from the action plan management model. The operation performing device may perform an operation based on the operation information.

IoT 서버는, 복수의 디바이스 각각에 관한 디바이스 정보를 획득하고, 저장하고, 관리하는 서버이다. IoT 서버는 저장된 디바이스 정보를 활용하여 디바이스를 제어할 수 있는 제어 명령을 획득, 결정 또는 생성할 수 있다. IoT 서버는, 동작 정보에 기초하여 동작을 수행하도록 결정된 디바이스에 제어 명령을 전송할 수 있다. IoT 서버는 본 명세서에 기재된 '서버'와는 독립된 하드웨어 장치로 구성될 수 있지만, 이에 한정되는 것은 아니다. IoT 서버는 본 명세서의 '음성 비서 서버'의 일 구성 요소이거나, 또는 소프트웨어로 구분되도록 설계된 서버일 수 있다. The IoT server is a server that acquires, stores, and manages device information for each of a plurality of devices. The IoT server may acquire, determine, or generate a control command capable of controlling a device by using the stored device information. The IoT server may transmit a control command to a device determined to perform an operation based on the operation information. The IoT server may be configured as a hardware device independent from the'server' described herein, but is not limited thereto. The IoT server may be a component of the'voice assistant server' of the present specification, or may be a server designed to be classified by software.

아래에서는 첨부한 도면을 참고하여 본 개시의 실시예에 대하여 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나 본 개시는 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시 예에 한정되지 않는다.Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those of ordinary skill in the art may easily implement the embodiments. However, the present disclosure may be implemented in various different forms and is not limited to the embodiments described herein.

이하에서는 도면을 참조하여 본 개시의 실시예들을 상세하게 설명한다. Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the drawings.

도 1은 본 개시의 일 실시예에 따른 허브 디바이스(1000), 음성 비서 서버(2000), IoT 서버(3000), 및 복수의 디바이스(4000)를 포함하는 멀티 디바이스 시스템의 일부 구성 요소를 도시한 블록도이다. 1 is a diagram illustrating some components of a multi-device system including a hub device 1000, a voice assistant server 2000, an IoT server 3000, and a plurality of devices 4000 according to an embodiment of the present disclosure. It is a block diagram.

도 1에서는 설명의 편의를 위하여, 허브 디바이스(1000), 음성 비서 서버(2000), IoT 서버(3000), 및 복수의 디바이스(4000) 각각의 동작을 설명하기 위한 필수적인 구성 요소만 도시되었다. 허브 디바이스(1000), 음성 비서 서버(2000), IoT 서버(3000), 및 복수의 디바이스(4000)가 포함하고 있는 구성이 도 1에 도시된 바와 같이 한정되는 것은 아니다. In FIG. 1, for convenience of description, only essential components for describing operations of the hub device 1000, the voice assistant server 2000, the IoT server 3000, and the plurality of devices 4000 are illustrated. Configurations included in the hub device 1000, the voice assistant server 2000, the IoT server 3000, and the plurality of devices 4000 are not limited as illustrated in FIG. 1.

도 1의 화살표 상에 도시된 참조번호 S1 내지 S16은 네트워크를 통한 복수의 주체 간의 데이터 이동, 전송, 및 수신을 표시한다. S1 내지 S16에서 영문자 S에 붙은 숫자는 식별을 위한 것으로서, 데이터의 이동, 전송, 및 수신의 순서와는 관련이 없다. Reference numerals S1 to S16 shown on the arrows of FIG. 1 denote data movement, transmission, and reception between a plurality of subjects through a network. The numbers attached to the alphabetic letter S in S1 to S16 are for identification, and are not related to the order of movement, transmission, and reception of data.

도 1을 참조하면, 허브 디바이스(1000), 음성 비서 서버(2000), IoT 서버(3000), 및 복수의 디바이스(4000)는 유선 통신 또는 무선 통신 방식으로 상호 연결되고, 통신을 수행할 수 있다. 일 실시예에서, 허브 디바이스(1000)와 복수의 디바이스(4000)는 상호 간 통신망을 통해 직접 연결될 수 있지만, 이에 한정되는 것은 아니다. 허브 디바이스(1000) 및 복수의 디바이스(4000)는 음성 비서 서버(2000)와 연결될 수 있으며, 허브 디바이스(1000)은 음성 비서 서버(2000)를 통해 복수의 디바이스(4000)과 연결될 수 있다. 또한, 허브 디바이스(1000)와 복수의 디바이스(4000)는 IoT 서버(3000)와 연결될 수 있다. 다른 실시예에서, 허브 디바이스(1000)와 복수의 디바이스(4000) 각각은 통신망을 통해 음성 비서 서버(2000)와 연결되고, 음성 비서 서버(2000)를 통해 IoT 서버(3000)와 연결될 수 있다. Referring to FIG. 1, a hub device 1000, a voice assistant server 2000, an IoT server 3000, and a plurality of devices 4000 may be interconnected through wired communication or wireless communication, and may perform communication. . In an embodiment, the hub device 1000 and the plurality of devices 4000 may be directly connected to each other through a communication network, but are not limited thereto. The hub device 1000 and the plurality of devices 4000 may be connected to the voice assistant server 2000, and the hub device 1000 may be connected to the plurality of devices 4000 through the voice assistant server 2000. In addition, the hub device 1000 and the plurality of devices 4000 may be connected to the IoT server 3000. In another embodiment, each of the hub device 1000 and the plurality of devices 4000 may be connected to the voice assistant server 2000 through a communication network, and may be connected to the IoT server 3000 through the voice assistant server 2000.

허브 디바이스(1000), 음성 비서 서버(2000), IoT 서버(3000), 및 복수의 디바이스(4000)는 근거리 통신망(Local Area Network; LAN), 광역 통신망(Wide Area Network; WAN), 부가가치 통신망(Value Added Network; VAN), 이동 통신망(mobile radio communication network), 위성 통신망 또는 이들의 상호 조합을 통해 연결될 수 있다. 무선 통신 방법은 예를 들어, 무선 랜(Wi-Fi), 블루투스, 블루투스 저 에너지(Bluetooth low energy), 지그비, WFD(Wi-Fi Direct), UWB(ultra wideband), 적외선 통신(IrDA, infrared Data Association), NFC(Near Field Communication) 등이 있을 수 있으나, 이에 한정되는 것은 아니다.The hub device 1000, the voice assistant server 2000, the IoT server 3000, and the plurality of devices 4000 include a local area network (LAN), a wide area network (WAN), and a value-added communication network ( Value Added Network (VAN), a mobile radio communication network, a satellite communication network, or a combination thereof. Wireless communication methods include, for example, wireless LAN (Wi-Fi), Bluetooth, Bluetooth low energy, ZigBee, Wi-Fi Direct (WFD), ultra wideband (UWB), infrared communication (IrDA, infrared data). Association), NFC (Near Field Communication), and the like, but are not limited thereto.

허브 디바이스(Hub device)(1000)는 사용자의 음성 입력을 수신하고, 수신된 음성 입력에 기초하여 복수의 디바이스(4000) 중 적어도 하나의 디바이스를 제어하는 디바이스이다. 허브 디바이스(1000)는 사용자로부터 음성 입력을 수신하는 리스너 디바이스(listener device)일 수 있다. 예를 들어, 허브 디바이스(1000)는 음성 비서 스피커일 수 있으나, 이에 한정되는 것은 아니다. The hub device 1000 is a device that receives a user's voice input and controls at least one of the plurality of devices 4000 based on the received voice input. The hub device 1000 may be a listener device that receives a voice input from a user. For example, the hub device 1000 may be a voice assistant speaker, but is not limited thereto.

허브 디바이스(1000)는 사용자 계정에 따라 IoT 서버(3000)에 기 등록된 복수의 디바이스 각각에 관한 리소스 상태 정보에 기초하여, 음성 비서 서버(2000)에 의해 결정될 수 있다. The hub device 1000 may be determined by the voice assistant server 2000 based on resource status information for each of a plurality of devices previously registered in the IoT server 3000 according to a user account.

복수의 디바이스(4000) 중 적어도 하나는 허브 디바이스(1000) 또는 IoT 서버(3000)의 제어 명령을 받아 특정 동작을 수행하는 동작 수행 디바이스일 수 있다. 복수의 디바이스(4000)는 허브 디바이스(1000)의 사용자와 동일한 사용자 계정(user account)으로 로그인되고, IoT 서버(3000)에 허브 디바이스(1000)의 사용자 계정으로 기 등록된 디바이스일 수 있다. 그러나, 이에 한정되는 것은 아니고, 복수의 디바이스(4000)는 사용자 계정에 따라 IoT 서버(3000)에 새롭게 등록된 신규 디바이스(4300)를 포함할 수 있다. 신규 디바이스(4300)는 허브 디바이스(1000)의 사용자가 신규로 취득하고, 허브 디바이스(1000) 및 다른 디바이스(4100, 4200)들과 동일한 사용자 계정으로 로그인함으로써, IoT 서버(3000)에 등록된 디바이스일 수 있다. At least one of the plurality of devices 4000 may be an operation performing device that performs a specific operation by receiving a control command from the hub device 1000 or the IoT server 3000. The plurality of devices 4000 may be devices that are logged in with the same user account as the user of the hub device 1000 and registered in the IoT server 3000 as a user account of the hub device 1000. However, the present invention is not limited thereto, and the plurality of devices 4000 may include a new device 4300 newly registered in the IoT server 3000 according to a user account. The new device 4300 is a device registered in the IoT server 3000 by newly acquiring the user of the hub device 1000 and logging in with the same user account as the hub device 1000 and other devices 4100 and 4200. Can be

복수의 디바이스(4000) 중 적어도 하나는, IoT 서버(3000)로부터 제어 명령을 수신하거나(S12, S14, S16), 또는 허브 디바이스(1000)로부터 음성 입력이 변환된 텍스트의 적어도 일부를 수신할 수 있다(S3, S5). 복수의 디바이스(4000) 중 적어도 하나는 허브 디바이스(1000)로부터 텍스트의 적어도 일부를 수신하지 않고, IoT 서버(3000)로부터 제어 명령을 수신할 수도 있다(S12, S14, S16). At least one of the plurality of devices 4000 may receive a control command from the IoT server 3000 (S12, S14, S16), or receive at least a portion of the text converted from a voice input from the hub device 1000. Yes (S3, S5). At least one of the plurality of devices 4000 may receive a control command from the IoT server 3000 without receiving at least a part of the text from the hub device 1000 (S12, S14, S16).

허브 디바이스(1000)에는 사용자의 음성 입력에 기초하여 동작을 수행할 디바이스를 결정하는 디바이스 판단 모델(1340)을 포함할 수 있다. 디바이스 판단 모델(1340)은 사용자 계정에 따라 등록된 복수의 디바이스(4000) 중에서 동작 수행 디바이스를 결정할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 음성 비서 서버(2000)로부터 복수의 디바이스(4000) 각각의 식별 정보(예를 들어, 디바이스 id 정보), 복수의 디바이스(4000) 각각의 디바이스 타입, 복수의 디바이스(4000) 각각의 기능 수행 능력(capability), 위치 정보, 및 상태 정보 중 적어도 하나를 포함하는 디바이스 정보를 수신할 수 있다(S2). 허브 디바이스(1000)는 디바이스 판단 모델(1340)에 관한 데이터를 이용하여, 수신된 디바이스 정보에 기초하여 복수의 디바이스(4000) 중 사용자의 음성 입력에 따른 동작을 수행할 디바이스를 결정할 수 있다. The hub device 1000 may include a device determination model 1340 that determines a device to perform an operation based on a user's voice input. The device determination model 1340 may determine a device for performing an operation from among a plurality of devices 4000 registered according to a user account. In one embodiment, the hub device 1000 includes identification information (eg, device ID information) of each of a plurality of devices 4000 from the voice assistant server 2000, a device type of each of the plurality of devices 4000, and a plurality of Device information including at least one of function performance capability, location information, and status information of each of the devices 4000 of may be received (S2). The hub device 1000 may determine a device to perform an operation according to a user's voice input from among the plurality of devices 4000 based on the received device information, using data on the device determination model 1340.

다른 실시예예서, 허브 디바이스(1000)는 복수의 디바이스로부터 직접 복수의 디바이스(4000) 각각의 식별 정보(예를 들어, 디바이스 id 정보), 복수의 디바이스(4000) 각각의 디바이스 타입, 복수의 디바이스(4000) 각각의 기능 수행 능력(capability), 위치 정보, 및 상태 정보 중 적어도 하나를 포함하는 디바이스 정보를 수신할 수 있다. 허브 디바이스는, 허브 디바이스와 연결된 엑세스 포인트에 연결된 복수의 디바이스를 식별하고, 식별된 복수의 디바이스에게 디바이스 정보를 요청하여 디바이스 정보를 획득할 수 있다. 이 경우, 복수의 디바이스는, 허브 디바이스의 요청에 따라 디바이스 정보를 전송하도록 구성된 SW 모듈을 포함할 수 있다. 또한, 허브 디바이스는, 복수의 디바이스가 전송하는 디바이스 정보를 수신하는 방식으로 디바이스 정보를 획득할 수 있다. 이 경우, 복수의 디바이스는, 복수의 디바이스에 연결된 엑세스 포인트에 연결된 허브 디바이스를 식별하도록 구성된 SW 모듈 및 식별된 허브 디바이스로 디바이스 정보를 전송하도록 구성된 SW 모듈을 포함할 수 있다.In another embodiment, the hub device 1000 includes identification information (eg, device ID information) of each of the plurality of devices 4000 directly from the plurality of devices, a device type of each of the plurality of devices 4000, and a plurality of devices. (4000) Device information including at least one of each function capability, location information, and state information may be received. The hub device may identify a plurality of devices connected to an access point connected to the hub device, and may obtain device information by requesting device information from the identified plurality of devices. In this case, the plurality of devices may include an SW module configured to transmit device information according to the request of the hub device. Also, the hub device may obtain device information by receiving device information transmitted by a plurality of devices. In this case, the plurality of devices may include an SW module configured to identify a hub device connected to an access point connected to the plurality of devices and an SW module configured to transmit device information to the identified hub device.

허브 디바이스(1000)는. 허브 디바이스(1000)에 연결되는 신규 디바이스에 대한 정보를 획득하면, 음성 비서 서버(2000)에, 허브 디바이스(1000)에 저장된 디바이스 판단 모델에 대한 업데이트를 요청한다. 일 실시예에서, 허브 디바이스(1000)는 IoT 서버(3000)로부터 수신한 신규 디바이스의 디바이스 정보에 기초하여, 사용자의 음성 입력으로부터 신규 디바이스와 관련된 텍스트를 분석하고, 신규 디바이스를 동작 수행 디바이스로 결정할 수 있도록, 메모리(1300, 도 2 참조)에 기 저장된 디바이스 판단 모델에 관한 업데이트를 요청하는 쿼리(query) 신호를 음성 비서 서버(2000)에 전송할 수 있다. 이 경우, 허브 디바이스(1000)는 적어도 사용자 계정 정보 및 허브 디바이스(1000)의 식별 정보(예를 들어, 허브 디바이스의 id 정보)를 쿼리 신호와 함께 음성 비서 서버(2000)에 전송할 수 있다.The hub device 1000 is. When information on a new device connected to the hub device 1000 is obtained, a request is made to the voice assistant server 2000 to update the device determination model stored in the hub device 1000. In one embodiment, the hub device 1000 analyzes text related to the new device from the user's voice input based on the device information of the new device received from the IoT server 3000, and determines the new device as the device to perform the operation. In order to be able to do so, a query signal for requesting an update on a device determination model previously stored in the memory 1300 (refer to FIG. 2) may be transmitted to the voice assistant server 2000. In this case, the hub device 1000 may transmit at least user account information and identification information (eg, ID information of the hub device) of the hub device 1000 to the voice assistant server 2000 together with a query signal.

허브 디바이스(1000)의 요청에 대응하여, 허브 디바이스(1000)는 음성 비서 서버(2000)로부터 업데이트된 디바이스 판단 모델을 수신하여 저장한다. 일 실시예에서, 허브 디바이스(1000)는 신규 디바이스에 관한 사용자의 음성 입력을 분석하고, 분석 결과 신규 디바이스를 동작 수행 디바이스로 결정할 수 있도록 업데이트된 디바이스 판단 모델을 음성 비서 서버(2000)로부터 다운로드(download)하고, 허브 디바이스(1000) 내부의 메모리(1300, 도 2 참조)에 업데이트된 디바이스 판단 모델을 저장할 수 있다.In response to the request of the hub device 1000, the hub device 1000 receives and stores the updated device determination model from the voice assistant server 2000. In one embodiment, the hub device 1000 analyzes a user's voice input for a new device, and downloads an updated device determination model from the voice assistant server 2000 so that the new device can be determined as an operation performing device as a result of the analysis. download), and the updated device determination model may be stored in the memory 1300 (refer to FIG. 2) inside the hub device 1000.

또한, 허브 디바이스(1000)에 의해 결정된 동작 수행 디바이스에 대응하는 기능 판단 모델은 허브 디바이스(1000)의 메모리(1300, 도 2 참조) 내에 저장되어 있거나, 동작 수행 디바이스 자체에 저장되어 있거나, 또는 음성 비서 서버(2000)의 메모리(2300, 도 3 참조) 내에 저장되어 있을 수 있다. 여기서, 허브 디바이스(1000)의 메모리는 비휘발성 메모리를 의미한다. 비휘발성 메모리(Non-volatile memory)는 전원이 공급되지 않은 상태에서도 정보를 저장 및 유지하고, 전원이 공급되면 다시 저장된 정보를 사용할 수 있는 기억 매체를 의미하고, 예를 들어, 플래시 메모리(flash memory), 하드디스크(hard disk), SSD(Solid State Drive), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 롬(Read Only Memory; ROM), 자기 메모리, 자기 디스크, 광디스크 중 적어도 하나를 포함할 수 있다. 각 디바이스에 대응하는 기능 판단 모델은, 디바이스가 판단된 기능에 따른 동작을 수행하기 위한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용하는 모델을 의미한다. In addition, the function determination model corresponding to the operation performing device determined by the hub device 1000 is stored in the memory 1300 of the hub device 1000 (refer to FIG. 2), stored in the operation performing device itself, or It may be stored in the memory 2300 (refer to FIG. 3) of the secretary server 2000. Here, the memory of the hub device 1000 refers to a nonvolatile memory. Non-volatile memory refers to a storage medium in which information can be stored and maintained even when power is not supplied, and information stored again can be used when power is supplied. For example, flash memory ), hard disk, solid state drive (SSD), multimedia card micro type, card-type memory (for example, SD or XD memory, etc.), read only memory (ROM) , A magnetic memory, a magnetic disk, and an optical disk. The function determination model corresponding to each device refers to a model used by the device to obtain detailed operations for performing an operation according to the determined function and operation information regarding a relationship between the detailed operations.

허브 디바이스(1000)는 리소스 트래킹 모듈(resource tracking module)(1350)을 이용하여, 허브 디바이스(1000) 및 복수의 디바이스(4000)의 리소스 상태를 모니터링하고, 리소스 상태 정보를 획득할 수 있다. 리소스 상태 정보는 허브 디바이스(1000) 및 복수의 디바이스(4000)의 프로세서(1200, 4120, 4220, 4320) 및 메모리(1300, 4130, 4230, 4310)의 사용 상태와 관련된 정보를 포함한다. 리소스 상태 정보는 예를 들어, 허브 디바이스(1000) 및 복수의 디바이스(4000)의 메모리(1300, 4130, 4230, 4310)의 잔여 용량, 평균 RAM 사용 용량, 및 평균 프로세서 점유율 정보 중 적어도 하나를 포함할 수 있다. 리소스 트래킹 모듈(1350)은 획득한 리소스 상태 정보를 기능 판단 모델 관리 모듈(1360)에 제공할 수 있다.The hub device 1000 may monitor resource states of the hub device 1000 and the plurality of devices 4000 by using a resource tracking module 1350 and obtain resource state information. The resource status information includes information related to the usage status of the processors 1200, 4120, 4220, 4320 and the memories 1300, 4130, 4230, 4310 of the hub device 1000 and the plurality of devices 4000. The resource status information includes, for example, at least one of the remaining capacity of the hub device 1000 and the memory (1300, 4130, 4230, 4310) of the plurality of devices 4000, the average RAM usage capacity, and the average processor occupancy information. can do. The resource tracking module 1350 may provide the acquired resource state information to the function determination model management module 1360.

허브 디바이스(1000)는 기능 판단 모델 관리 모듈(1360)을 이용하여, 기능 판단 모델(1370)을 허브 디바이스(1000) 및 복수의 디바이스(4000)의 메모리(1300, 4130, 4230, 4310)에 저장하여 처리할 지 여부를 판단할 수 있다. 기능 판단 모델이 복수 개인 경우, 복수의 기능 판단 모델(1370) 각각에 대해 허브 디바이스(1000) 및 복수의 디바이스의 메모리(1300, 4130, 4230, 4310)에 저장하여 처리할 것인지 여부를 판단할 수 있다. 기능 판단 모델 관리 모듈(1360)은 음성 비서 서버(2000)로부터 수신한 기능 판단 모델의 정보(예를 들어, 기능 판단 모델의 용량 정보)와 리소스 트래킹 모듈(1350)로부터 수신한 리소스 상태 정보를 비교 및 분석할 수 있다. 기능 판단 모델 관리 모듈(1360)은 비교/분석 결과를 이용하여, 음성 비서 서버(2000)로부터 기능 판단 모델을 다운로드(download)하여 허브 디바이스(1000) 및 복수의 디바이스(4000)의 메모리(1300, 4130, 4230, 4310)에 저장할 지 여부를 결정할 수 있다. The hub device 1000 stores the function determination model 1370 in the hub device 1000 and the memories 1300, 4130, 4230, and 4310 of the plurality of devices 4000 using the function determination model management module 1360 It can be determined whether or not to process. When there are multiple function determination models, it is possible to determine whether to store and process the plurality of function determination models 1370 in the hub device 1000 and the memories 1300, 4130, 4230, and 4310 of each of the plurality of devices. have. The function determination model management module 1360 compares the information of the function determination model received from the voice assistant server 2000 (for example, capacity information of the function determination model) and the resource state information received from the resource tracking module 1350 And can be analyzed. The function determination model management module 1360 downloads the function determination model from the voice assistant server 2000 by using the comparison/analysis result, and the memory 1300 of the hub device 1000 and the plurality of devices 4000 and 4130, 4230, 4310).

일 실시예에서, 기능 판단 모델 관리 모듈(1360)이 음성 비서 서버(2000)로부터 기능 판단 모델을 다운로드하여 메모리(1300)에 저장하기로 결정한 경우, 허브 디바이스(1000)는 음성 비서 서버(2000)에 기능 판단 모델을 전송해 줄 것을 요청하는 쿼리(query)를 전송하고, 음성 비서 서버(2000)로부터 기능 판단 모델을 수신하여 메모리(1300)에 저장할 수 있다. In one embodiment, when the function determination model management module 1360 determines to download the function determination model from the voice assistant server 2000 and store it in the memory 1300, the hub device 1000 is the voice assistant server 2000. A query requesting that the function determination model be transmitted may be transmitted, and the function determination model may be received from the voice assistant server 2000 and stored in the memory 1300.

다른 실시예에서, 기능 판단 모델 관리 모듈(1360)이 음성 비서 서버(2000)로부터 기능 판단 모델을 다운로드하여 허브 디바이스(1000)가 아닌 복수의 디바이스(4000) 중 적어도 하나의 메모리(4130, 4230, 4310)에 저장하기로 결정한 경우, 허브 디바이스(1000)는 음성 비서 서버(2000)에 기능 판단 모델을 전송해 줄 것을 요청하는 쿼리(query)를 전송하고, 음성 비서 서버(2000)로부터 기능 판단 모델을 수신하여 복수의 디바이스(4000) 중 적어도 하나에 전송할 수 있다. 음성 비서 서버(2000)는 기능 판단 모델을 허브 디바이스(1000)가 아닌 복수의 디바이스(4000) 중 적어도 하나에 전송할 수 있다.In another embodiment, the function determination model management module 1360 downloads the function determination model from the voice assistant server 2000 and stores at least one memory 4130, 4230, and a plurality of devices 4000 other than the hub device 1000. 4310), the hub device 1000 transmits a query requesting to transmit the function determination model to the voice assistant server 2000, and the function determination model from the voice assistant server 2000 May be received and transmitted to at least one of the plurality of devices 4000. The voice assistant server 2000 may transmit the function determination model to at least one of the plurality of devices 4000 instead of the hub device 1000.

다른 실시예에서, 기능 판단 모델 관리 모듈(1360)이 음성 비서 서버(2000)로부터 기능 판단 모델을 다운로드하지 않기로 결정한 경우, 허브 디바이스(1000)는 음성 비서 서버(2000)에 기 저장된 기능 판단 모델에 관한 액세스(access) 정보를 수신하고, 수신된 액세스 정보를 기능 판단 모델 데이터베이스(1362)에 저장할 수 있다. In another embodiment, when the function determination model management module 1360 decides not to download the function determination model from the voice assistant server 2000, the hub device 1000 uses the function determination model previously stored in the voice assistant server 2000. Access information related to may be received, and the received access information may be stored in the function determination model database 1362.

기능 판단 모델 데이터베이스(1362)는 음성 비서 서버(2000)에 기 저장된 복수의 기능 판단 모델(2362, 2364, 2366, 2368) 중 허브 디바이스(1000)와 동일한 사용자 계정에 등록되어 있거나 또는 신규로 등록된 디바이스에 대응하는 기능 판단 모델에 관한 용량 정보 및 액세스 정보를 저장하고 있을 수 있다. 액세스 정보는 각 기능 판단 모델이 저장된 음성 비서 서버(2000)의 식별 정보(예를 들어, 서버 id), 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 음성 비서 서버(2000) 내의 기능 판단 모델에 접근할 수 있는 API 정보(Application Programming Interface), 각 기능 판단 모델의 사용 언어 및 대응하는 디바이스의 식별 정보 중 적어도 하나를 포함할 수 있다. The function determination model database 1362 is registered in the same user account as the hub device 1000 or newly registered among a plurality of function determination models 2362, 2364, 2366, 2368 previously stored in the voice assistant server 2000. Capacity information and access information on a function determination model corresponding to the device may be stored. The access information includes identification information (eg, server ID), location information, IP address information (IP address), MAC address (MAC address), and voice assistant server (2000) of the voice assistant server 2000 in which each function determination model is stored. ) May include at least one of API information (Application Programming Interface) for accessing the function determination model, a language used for each function determination model, and identification information of a corresponding device.

일 실시예에서, 허브 디바이스(1000)는 사용자 계정에 신규 디바이스가 등록되는 경우, 기능 판단 모델 관리 모듈(1360)을 이용하여, 신규 디바이스에 대응하는 기능 판단 모델에 관한 정보(예를 들어, 용량 정보)를 음성 비서 서버(2000)로부터 수신한다. 허브 디바이스(1000)는, 수신된 기능 판단 모델에 관한 정보에 기초하여, 기능 판단 모델을 음성 비서 서버(2000)로부터 다운로드하여 메모리(1300, 도 2 참조) 내에 저장할 지 여부를 결정할 수 있다. 기능 판단 모델을 메모리(1300)에 저장하는 것으로 결정한 경우, 허브 디바이스(1000)는 신규 디바이스에 대응하는 기능 판단 모델을 음성 비서 서버(2000)로부터 다운로드하고, 메모리(1300)에 저장할 수 있다. 기능 판단 모델을 저장하지 않는 것으로 결정한 경우, 허브 디바이스(1000)는 신규 디바이스에 대응하는 기능 판단 모델에 관한 액세스 정보를 기능 판단 모델 데이터베이스(1362)에 저장할 수 있다. In one embodiment, when a new device is registered in a user account, the hub device 1000 uses the function determination model management module 1360 to provide information on a function determination model corresponding to the new device (e.g., capacity Information) is received from the voice assistant server 2000. The hub device 1000 may determine whether to download the function determination model from the voice assistant server 2000 and store it in the memory 1300 (refer to FIG. 2) based on the received information on the function determination model. When it is determined to store the function determination model in the memory 1300, the hub device 1000 may download the function determination model corresponding to the new device from the voice assistant server 2000 and store it in the memory 1300. When it is determined not to store the function determination model, the hub device 1000 may store access information on the function determination model corresponding to the new device in the function determination model database 1362.

허브 디바이스(1000)는 허브 디바이스(1000) 자체의 기능을 판단하고, 판단된 기능에 따른 동작을 수행하기 위한 기능 판단 모델(1372) 및 복수의 디바이스(4000) 중 적어도 하나의 디바이스에 대응하는 기능 판단 모델(1374)을 자체적으로 저장하고 있을 수 있다. 예를 들어, 허브 디바이스(1000)가 음성 비서 스피커인 경우, 허브 디바이스(1000)는 자체의 기능을 수행하기 위한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용하는 스피커 기능 판단 모델(1372)을 저장할 수 있다. 다른 예를 들어, 허브 디바이스(1000)는 TV에 대응하는 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용하는 TV 기능 판단 모델(1374)을 저장할 수도 있다. TV는 허브 디바이스(1000)의 사용자 계정과 동일한 사용자 계정으로 IoT 서버(3000)에 기 등록된 디바이스일 수 있다. The hub device 1000 determines a function of the hub device 1000 itself, and a function determination model 1372 for performing an operation according to the determined function and a function corresponding to at least one of the plurality of devices 4000 The judgment model 1374 may be self-saving. For example, when the hub device 1000 is a voice assistant speaker, the hub device 1000 determines a speaker function used to obtain detailed operations for performing its own function and operation information about a relationship between the detailed operations. The model 1372 can be saved. For another example, the hub device 1000 may store a TV function determination model 1374 used to obtain detailed operations corresponding to a TV and operation information about a relationship between the detailed operations. The TV may be a device previously registered in the IoT server 3000 with the same user account as the user account of the hub device 1000.

스피커 기능 판단 모델(1372) 및 TV 기능 판단 모델(1374)은 각각 제2 자연어 이해 모델(1372a, 1374a) 및 액션 플랜 관리 모델(1372b, 1374b)을 포함할 수 있다. 제2 자연어 이해 모델(1372a, 1374a) 및 액션 플랜 관리 모델(1372b, 1374b)에 관해서는 도 2에서 상세하게 설명하기로 한다.The speaker function determination model 1372 and the TV function determination model 1374 may include second natural language understanding models 1372a and 1374a and action plan management models 1372b and 1374b, respectively. The second natural language understanding models 1372a and 1374a and the action plan management models 1372b and 1374b will be described in detail with reference to FIG. 2.

음성 비서 서버(2000)는 허브 디바이스(1000)로부터 수신된 텍스트에 기초하여, 사용자가 의도하는 동작을 수행할 동작 수행 디바이스를 결정할 수 있다. 음성 비서 서버(2000)는 허브 디바이스(1000)로부터 사용자 계정에 관한 정보를 수신할 수 있다(S1). 음성 비서 서버(2000)는 허브 디바이스(1000)로부터 사용자 계정 정보를 수신하면, 수신된 사용자 계정 정보에 대하여 기 등록된 복수의 디바이스(4000)에 관한 디바이스 정보를 IoT 서버(3000)에 요청하는 쿼리(query)를 전송하고(S9), IoT 서버(3000)로부터 복수의 디바이스(4000)에 관한 디바이스 정보를 수신할 수 있다(S10). 디바이스 정보는, 복수의 디바이스(4000) 각각의 식별 정보(예를 들어, 디바이스 id 정보), 복수의 디바이스(4000) 각각의 디바이스 타입, 복수의 디바이스(4000) 각각의 기능 수행 능력(capability), 위치 정보, 및 상태 정보 중 적어도 하나를 포함할 수 있다. 음성 비서 서버(2000)는 IoT 서버(3000)로부터 수신한 디바이스 정보를 허브 디바이스(1000)에 전송할 수 있다(S2). The voice assistant server 2000 may determine an operation performing device to perform an operation intended by the user based on the text received from the hub device 1000. The voice assistant server 2000 may receive information about a user account from the hub device 1000 (S1). When the voice assistant server 2000 receives user account information from the hub device 1000, a query for requesting device information on a plurality of devices 4000 that are previously registered for the received user account information to the IoT server 3000 The (query) may be transmitted (S9), and device information regarding the plurality of devices 4000 may be received from the IoT server 3000 (S10). The device information includes identification information (eg, device ID information) of each of the plurality of devices 4000, a device type of each of the plurality of devices 4000, the capability of each of the plurality of devices 4000, It may include at least one of location information and status information. The voice assistant server 2000 may transmit device information received from the IoT server 3000 to the hub device 1000 (S2).

음성 비서 서버(2000)는 디바이스 판단 모델(2330), 음성 비서 모델 업데이트 모듈(2340), 온 디바이스 모델 업데이트 모듈(On device model update module)(2350), 및 복수의 기능 판단 모델(2362, 2364, 2366, 2368)을 포함할 수 있다. 음성 비서 서버(2000)는 디바이스 판단 모델(2330)을 이용하여, 복수의 기능 판단 모델(2362, 2364, 2366, 2368) 중 허브 디바이스(1000)로부터 수신된 텍스트의 적어도 일부에 대응하는 기능 판단 모델을 선택하고, 선택된 기능 판단 모델을 이용하여 동작 수행 디바이스가 동작을 수행하기 위한 동작 정보를 획득할 수 있다. 음성 비서 서버(2000)는 동작 정보를 IoT 서버(3000)에 전송할 수 있다(S9). The voice assistant server 2000 includes a device determination model 2330, a voice assistant model update module 2340, an on device model update module 2350, and a plurality of function determination models 2362, 2364, and 2366, 2368). The voice assistant server 2000 uses the device determination model 2330, a function determination model corresponding to at least a part of the text received from the hub device 1000 among a plurality of function determination models 2362, 2364, 2366, 2368 After selecting and using the selected function determination model, operation information for the operation performing device to perform the operation may be obtained. The voice assistant server 2000 may transmit operation information to the IoT server 3000 (S9).

음성 비서 서버(2000)는 음성 비서 모델 업데이트 모듈(2340)을 이용하여, 음성 비서 모델을 업데이트할 수 있다. IoT 서버(3000)의 사용자 계정에 신규 디바이스가 새롭게 등록되는 경우 또는 기존 디바이스에 신규 기능이 추가되는 경우, 음성 비서 서버(2000)는 음성 비서 모델 업데이트 모듈(2340)을 이용하여 디바이스 판단 모델(2330) 및 기능 판단 모델(2368)을 업데이트할 수 있다. 예를 들어, 제2 디바이스(4200)의 기능이 추가되거나, 변경되는 경우와 같이, 제2 디바이스(4200)에 대응하는 기능 판단 모델(2364)이 업데이트되는 경우, 음성 비서 모델 업데이트 모듈(2340)은 디바이스 판단 모델(2330)이 업데이트된 기능을 해석함으로써, 업데이트된 기능과 관련된 동작 수행 디바이스로서 제2 디바이스(4200)를 결정할 수 있도록 학습 등을 통해 디바이스 판단 모델(2330)을 새로운 모델로 업데이트할 수 있다. 일 실시예에서, 음성 비서 모델 업데이트 모듈(2340)은 디바이스 판단 모델(2330)의 제1 자연어 이해 모델(2332)이 새로 업데이트된 기능에 관련된 텍스트를 해석하도록 학습 등을 통해 제1 자연어 이해 모델(2332)을 새로운 모델로 업데이트할 수 있다. The voice assistant server 2000 may update the voice assistant model using the voice assistant model update module 2340. When a new device is newly registered in the user account of the IoT server 3000 or a new function is added to an existing device, the voice assistant server 2000 uses the voice assistant model update module 2340 to determine the device determination model 2330. ) And the function determination model 2368 may be updated. For example, when the function determination model 2364 corresponding to the second device 4200 is updated, such as when a function of the second device 4200 is added or changed, the voice assistant model update module 2340 The device determination model 2330 is updated to a new model through learning so that the device determination model 2330 analyzes the updated function to determine the second device 4200 as a device performing an operation related to the updated function. I can. In one embodiment, the voice assistant model update module 2340 includes a first natural language understanding model through learning so that the first natural language understanding model 2332 of the device determination model 2330 interprets text related to the newly updated function. 2332) can be updated with new models.

예를 들어, IoT 서버(3000)의 사용자 계정에 신규 디바이스(4300)가 등록되는 경우, 음성 비서 모델 업데이트 모듈(2340)은 IoT 서버(3000)로부터 신규 디바이스(4300)의 식별 정보 및 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 수신하고, 수신된 기능 판단 모델(2368)을 메모리(2300, 도 3 참조) 내의 기존 기능 판단 모델(2362, 2364, 2366)에 추가하여 저장할 수 있다. 음성 비서 모델 업데이트 모듈(2340)은 디바이스 판단 모델(2330)이 텍스트로부터 인텐트를 해석하고, 해석 결과 인텐트와 관련된 동작 수행 디바이스로서 신규 디바이스(4300)를 결정할 수 있도록 학습 등을 통해 디바이스 판단 모델(2330)을 새로운 모델로 업데이트할 수 있다. 일 실시예에서, 음성 비서 모델 업데이트 모듈(2340)은 디바이스 판단 모델(2330)의 제1 자연어 이해 모델(2332)이 신규 디바이스(4300)와 관련된 텍스트를 해석하도록 학습 등을 통해 제1 자연어 이해 모델(2332)을 새로운 모델로 업데이트할 수 있다. For example, when a new device 4300 is registered in the user account of the IoT server 3000, the voice assistant model update module 2340 may provide identification information of the new device 4300 and the new device ( A function determination model 2368 corresponding to 4300 may be received, and the received function determination model 2368 may be added to and stored in the existing function determination models 2362, 2364, 2366 in the memory 2300 (refer to FIG. 3). . The voice assistant model update module 2340 is a device determination model through learning so that the device determination model 2330 analyzes the intent from the text and determines a new device 4300 as a device performing an operation related to the intent as a result of the analysis. (2330) can be updated with a new model. In one embodiment, the voice assistant model update module 2340 is a first natural language understanding model through learning so that the first natural language understanding model 2332 of the device determination model 2330 interprets text related to the new device 4300. (2332) can be updated with new models.

음성 비서 서버(2000)는 온 디바이스 모델 업데이트 모듈(2350)을 이용하여, 사용자 계정 별로 음성 비서 모델을 학습시키고, 학습을 통해 업데이트된 음성 비서 모델 중 적어도 일부를 허브 디바이스(1000)에 전송할 지 여부를 결정할 수 있다. 다른 실시예에서, 학습을 통해 업데이트된 음성 비서 모델 중 적어도 일부를 허브 디바이스(1000) 외 복수의 디바이스(4000) 중 적어도 하나의 디바이스에 전송하도록 결정할 수 있다. 온 디바이스 모델 업데이트 모듈(2350)은 음성 비서 모델의 구성에 관한 정보를 각 사용자 계정 별로 저장하는 온 디바이스 모델 정보 데이터베이스(2352)를 포함할 수 있다. 온 디바이스 모델 정보 데이터베이스(2352)는 예를 들어, 사용자 계정 정보, 사용자 계정에 연관되어 등록된 복수의 디바이스에 대한 식별 정보, 복수의 디바이스 각각에 대응하는 기능 판단 모델의 식별 정보, 기능 판단 모델의 버전(version) 정보, 디바이스 판단 모델의 버전 정보, 및 디바이스 판단 모델에 의해 동작 수행 디바이스로 판단될 수 있는 디바이스 종류에 관한 정보 중 적어도 하나를 저장할 수 있다. The voice assistant server 2000 uses the on-device model update module 2350 to learn a voice assistant model for each user account, and whether to transmit at least some of the updated voice assistant models to the hub device 1000 through learning. Can be determined. In another embodiment, it may be determined to transmit at least a part of the voice assistant model updated through learning to at least one of the plurality of devices 4000 other than the hub device 1000. The on-device model update module 2350 may include an on-device model information database 2352 for storing information on the configuration of the voice assistant model for each user account. The on-device model information database 2352 includes, for example, user account information, identification information for a plurality of devices registered in association with a user account, identification information of a function determination model corresponding to each of the plurality of devices, and a function determination model. At least one of version information, version information of a device determination model, and information on a device type that may be determined as an operation performing device based on the device determination model may be stored.

음성 비서 서버(2000)는 온 디바이스 모델 업데이트 모듈(2350)을 이용하여, 업데이트된 디바이스 판단 모델(2330)을 허브 디바이스(1000)에 전송하는 것으로 결정한 경우, 통신 인터페이스(2100, 도 3 참조)를 이용하여 업데이트된 디바이스 판단 모델(2330)을 허브 디바이스(1000)에 전송할 수 있다(S2). 일 실시예에서, 음성 비서 서버(2000)가 허브 디바이스(1000)로부터 신규 디바이스에 대응하는 기능 판단 모델(2368)의 전송을 요청하는 신호가 수신되는 경우(S1), 음성 비서 서버(2000)는 온 디바이스 모델 업데이트 모듈(2350)을 이용하여 신규 디바이스에 대응하는 기능 판단 모델(2368)을 허브 디바이스(1000)에 전송할 수 있다(S2). 다른 실시예에서, 음성 비서 서버(2000)는 온 디바이스 모델 업데이트 모듈(2350)을 이용하여 신규 디바이스에 대응하는 기능 판단 모델(2368)을 복수의 디바이스(4000) 중 적어도 하나에 전송할 수 있다.When it is determined that the voice assistant server 2000 transmits the updated device determination model 2330 to the hub device 1000 using the on-device model update module 2350, the communication interface 2100 (refer to FIG. 3) is used. The updated device determination model 2330 may be transmitted to the hub device 1000 (S2). In one embodiment, when the voice assistant server 2000 receives a signal requesting transmission of the function determination model 2368 corresponding to the new device from the hub device 1000 (S1), the voice assistant server 2000 The function determination model 2368 corresponding to the new device may be transmitted to the hub device 1000 using the on-device model update module 2350 (S2). In another embodiment, the voice assistant server 2000 may transmit a function determination model 2368 corresponding to a new device to at least one of the plurality of devices 4000 using the on-device model update module 2350.

음성 비서 서버(2000)에 저장되어 있는 복수의 기능 판단 모델(2362, 2364, 2366, 2368) 각각에 관해서는 도 3에서 상세하게 설명하기로 한다. Each of the plurality of function determination models 2362, 2364, 2366, and 2368 stored in the voice assistant server 2000 will be described in detail with reference to FIG. 3.

IoT 서버(3000)는 네트워크를 통해 연결되고, 허브 디바이스(1000)의 사용자 계정에 기 등록된 복수의 디바이스(4000)에 관한 정보를 저장할 수 있다. 일 실시예에서, IoT 서버(3000)는 복수의 디바이스(4000) 각각으로부터 로그인된 사용자 계정 정보, 복수의 디바이스(4000)의 식별 정보(예를 들어, 디바이스 id 정보), 복수의 디바이스(4000) 각각의 디바이스 타입, 및 복수의 디바이스(4000) 각각의 기능 수행 능력 정보(capability) 중 적어도 하나를 수신할 수 있다(S11, S13, S15). 일 실시예에서, IoT 서버(3000)는 복수의 디바이스(4000) 각각의 전원 온오프(on/off), 또는 실행하고 있는 동작에 관한 상태 정보를 복수의 디바이스(4000)로부터 수신할 수도 있다(S11, S13, S15). IoT 서버(3000)는 복수의 디바이스(4000)로부터 수신된 디바이스 정보 및 디바이스의 상태 정보를 저장하고 있을 수 있다. The IoT server 3000 is connected through a network and may store information on a plurality of devices 4000 that are previously registered in a user account of the hub device 1000. In one embodiment, the IoT server 3000 includes user account information logged in from each of the plurality of devices 4000, identification information (eg, device ID information) of the plurality of devices 4000, and the plurality of devices 4000 At least one of each device type and function performance capability information of each of the plurality of devices 4000 may be received (S11, S13, S15). In an embodiment, the IoT server 3000 may receive power on/off of each of the plurality of devices 4000 or status information regarding an operation being executed from the plurality of devices 4000 ( S11, S13, S15). The IoT server 3000 may store device information and device state information received from the plurality of devices 4000.

IoT 서버(3000)는 복수의 디바이스(4000) 각각으로부터 수신한 디바이스 정보, 및 상태 정보를 음성 비서 서버(2000)에 전송할 수 있다(S10). The IoT server 3000 may transmit device information and status information received from each of the plurality of devices 4000 to the voice assistant server 2000 (S10).

IoT 서버(3000)는, 음성 비서 서버(2000)로부터 수신한 동작 정보에 기초하여, 동작 수행 디바이스가 판독하고, 실행할 수 있는 제어 명령을 생성할 수 있다. IoT 서버(3000)는 복수의 디바이스(4000) 중 동작 수행 디바이스로 결정된 디바이스에 제어 명령을 전송할 수 있다(S12, S14, S16). The IoT server 3000 may generate a control command that can be read and executed by the operation performing device based on the operation information received from the voice assistant server 2000. The IoT server 3000 may transmit a control command to a device determined as an operation performing device among the plurality of devices 4000 (S12, S14, S16).

IoT 서버(3000)의 구성 요소에 대해서는 도 4에서 상세하게 설명하기로 한다. Components of the IoT server 3000 will be described in detail with reference to FIG. 4.

도 1에 도시된 실시예에서, 복수의 디바이스(4000)는 제1 디바이스(4100), 제2 디바이스(4200), 및 신규 디바이스(4300)를 포함할 수 있다. 도 1에서 제1 디바이스(4100)는 에어컨이고, 제2 디바이스(4200)는 TV이고, 신규 디바이스(4300)는 공기청정기인 것으로 도시되어 있지만, 이에 한정되는 것은 아니다. 복수의 디바이스(4000)는 에어컨, TV, 공기청정기 뿐만 아니라, 로봇 청소기, 세탁기, 오븐, 전자레인지, 체중계, 냉장고, 전자 액자 등 가전 제품, 스마트폰(smartphone), 태블릿 PC(tablet personal computer), 이동 전화기(mobile phone), 영상 전화기, 전자책 리더기(e-book reader), 데스크탑 PC(desktop personal computer), 랩탑 PC(laptop personal computer), 넷북 컴퓨터(netbook computer), 워크스테이션(workstation), 서버, PDA(personal digital assistant), PMP(portable multimedia player), MP3 플레이어, 모바일 의료기기, 카메라(camera), 또는 웨어러블 장치(wearable device) 등 모바일 디바이스를 포함할 수도 있다. In the embodiment illustrated in FIG. 1, the plurality of devices 4000 may include a first device 4100, a second device 4200, and a new device 4300. In FIG. 1, the first device 4100 is an air conditioner, the second device 4200 is a TV, and the new device 4300 is an air purifier, but the present invention is not limited thereto. The plurality of devices 4000 include not only air conditioners, TVs, and air purifiers, but also home appliances such as robot cleaners, washing machines, ovens, microwave ovens, scales, refrigerators, and electronic frames, smartphones, and tablet personal computers. Mobile phone, video phone, e-book reader, desktop personal computer, laptop personal computer, netbook computer, workstation, server , A personal digital assistant (PDA), a portable multimedia player (PMP), an MP3 player, a mobile medical device, a camera, or a wearable device.

복수의 디바이스(4000) 중 적어도 하나의 디바이스는 기능 판단 모델을 자체적으로 저장하고 있을 수 있다. 예를 들어 제1 디바이스(4100)의 메모리(4130)에는, 제1 디바이스(4100)가 사용자의 음성 입력으로부터 판단된 동작을 수행하기 위한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하고, 동작 정보에 기초하여 제어 명령을 생성하기 위하여 이용되는 기능 판단 모델(4132)이 저장되어 있을 수 있다. At least one device among the plurality of devices 4000 may itself store a function determination model. For example, in the memory 4130 of the first device 4100, detailed operations for the first device 4100 to perform an operation determined from the user's voice input and operation information regarding the relationship between the detailed operations are obtained. In addition, a function determination model 4132 used to generate a control command based on the operation information may be stored.

복수의 디바이스(4000) 중 제2 디바이스(4200) 및 신규 디바이스(4300)는 각 디바이스에 대응하는 기능 판단 모델을 저장하지 않는다. 그러나, 이에 한정되는 것은 아니다. 일 실시예에서, 신규 디바이스(4300)에 대응하는 기능 판단 모델이 신규 디바이스(4300)의 내부 메모리에 자체적으로 저장되어 있을 수 있다. Among the plurality of devices 4000, the second device 4200 and the new device 4300 do not store a function determination model corresponding to each device. However, it is not limited thereto. In an embodiment, a function determination model corresponding to the new device 4300 may be stored in an internal memory of the new device 4300 by itself.

복수의 디바이스(4000) 중 적어도 하나의 디바이스는, 복수의 디바이스(4000) 각각에 대응하는 기능 판단 모델을 자체적으로 저장하고 있는지 여부에 관한 정보를 허브 디바이스(1000)에 전송할 수 있다(S4, S6, S8). At least one of the plurality of devices 4000 may transmit information on whether or not a function determination model corresponding to each of the plurality of devices 4000 is stored on its own to the hub device 1000 (S4, S6). , S8).

도 2는 본 개시의 일 실시예에 따른 허브 디바이스(1000)의 구성 요소를 도시한 블록도이다.2 is a block diagram illustrating components of a hub device 1000 according to an embodiment of the present disclosure.

허브 디바이스(Hub device)(1000)는 사용자의 음성 입력을 수신하고, 수신된 음성 입력에 기초하여 복수의 디바이스(4000) 중 적어도 하나의 디바이스를 제어하는 디바이스이다. 허브 디바이스(1000)는 사용자로부터 음성 입력을 수신하는 리스너 디바이스(listener device)일 수 있다. The hub device 1000 is a device that receives a user's voice input and controls at least one of the plurality of devices 4000 based on the received voice input. The hub device 1000 may be a listener device that receives a voice input from a user.

도 2를 참조하면, 허브 디바이스(1000)는 적어도 마이크(1100), 프로세서(1200), 메모리(1300) 및 통신 인터페이스(1400)를 포함하도록 구성될 수 있다. 허브 디바이스(1000)는 마이크(1100)를 통해 사용자로부터 음성 입력(예를 들어, 사용자의 발화)을 수신하고, 수신된 음성 입력으로부터 음성 신호를 획득할 수 있다. 일 실시예에서, 허브 디바이스(1000)의 프로세서(1200)는, 마이크(1100)를 통해 수신된 소리를 음향 신호로 변환하고, 음향 신호로부터 노이즈(예를 들어, 비음성 성분)를 제거하여 음성 신호를 획득할 수 있다. Referring to FIG. 2, the hub device 1000 may be configured to include at least a microphone 1100, a processor 1200, a memory 1300, and a communication interface 1400. The hub device 1000 may receive a voice input (eg, a user's utterance) from a user through the microphone 1100 and obtain a voice signal from the received voice input. In one embodiment, the processor 1200 of the hub device 1000 converts the sound received through the microphone 1100 into an acoustic signal, and removes noise (for example, a non-speech component) from the acoustic signal to The signal can be acquired.

도면에는 도시되지 않았지만, 허브 디바이스(1000)는 지정된 음성 입력(예를 들어, '하이 빅스비', '오케이 구글'등과 같은 웨이크 업 입력)을 감지하는 기능 또는 일부 음성 입력으로부터 획득한 음성 신호를 전처리하는 기능을 갖는 음성 인식 모듈을 포함할 수 있다. Although not shown in the drawing, the hub device 1000 detects a designated voice input (for example, a wake-up input such as'Hi Bixby','OK Google', etc.) or receives a voice signal acquired from some voice inputs. It may include a speech recognition module having a function of pre-processing.

프로세서(1200)는 메모리(1300)에 저장된 프로그램의 하나 이상의 명령어들(instructions)을 실행할 수 있다. 프로세서(1200)는 산술, 로직 및 입출력 연산과 시그널 프로세싱을 수행하는 하드웨어 구성 요소로 구성될 수 있다. 프로세서(1200)는 예를 들어, 중앙 처리 장치(Central Processing Unit), 마이크로 프로세서(microprocessor), 그래픽 프로세서(Graphic Processing Unit), ASICs(Application Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), 및 FPGAs(Field Programmable Gate Arrays) 중 적어도 하나로 구성될 수 있으나, 이에 제한되는 것은 아니다. The processor 1200 may execute one or more instructions of a program stored in the memory 1300. The processor 1200 may be composed of hardware components that perform arithmetic, logic, input/output operations, and signal processing. The processor 1200 is, for example, a central processing unit (Central Processing Unit), a microprocessor (microprocessor), a graphics processor (Graphic Processing Unit), ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSPDs (Digital Signal Processing Devices), Programmable Logic Devices (PLDs), and Field Programmable Gate Arrays (FPGAs), but are not limited thereto.

메모리(1300)에는 마이크(1100)를 통해 수신한 사용자의 음성 입력에 기초하여 복수의 디바이스(4000)를 제어하기 위한 명령어들(instruction)을 포함하는 프로그램이 저장될 수 있다. 메모리(1300)에는 프로세서(1200)가 판독할 수 있는 명령어들 및 프로그램 코드(program code)가 저장될 수 있다. 이하의 실시예에서, 프로세서(1200)는 메모리에 저장된 프로그램의 명령어들 또는 코드들을 실행함으로써 구현될 수 있다. A program including instructions for controlling the plurality of devices 4000 based on a user's voice input received through the microphone 1100 may be stored in the memory 1300. The memory 1300 may store instructions and program codes that the processor 1200 can read. In the following embodiments, the processor 1200 may be implemented by executing instructions or codes of a program stored in a memory.

메모리(1300)에는 ASR 모듈(1310)에 관한 데이터, NLG 모듈(1320)에 관한 데이터, TTS 모듈(1330)에 관한 데이터, 디바이스 판단 모델(1340)에 관한 데이터, 리소스 트래킹 모듈(1350)에 관한 데이터, 기능 판단 모델 관리 모듈(1360)에 관한 데이터, 및 복수의 기능 판단 모델(1370) 각각에 대응하는 데이터가 저장되어 있을 수 있다. The memory 1300 includes data about the ASR module 1310, data about the NLG module 1320, data about the TTS module 1330, data about the device determination model 1340, and the resource tracking module 1350. Data, data related to the function determination model management module 1360, and data corresponding to each of the plurality of function determination models 1370 may be stored.

메모리(1300)는 비휘발성 메모리(Non-volatile memory)를 포함할 수 있다. 메모리(1300)는 예를 들어, 플래시 메모리 타입(flash memory type), 하드디스크 타입(hard disk type), SSD(Solid State Drive), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 램(RAM, Random Access Memory) SRAM(Static Random Access Memory), 롬(ROM, Read-Only Memory), EEPROM(Electrically Erasable Programmable Read-Only Memory), PROM(Programmable Read-Only Memory), 자기 메모리, 자기 디스크, 광디스크 중 적어도 하나의 타입의 저장매체를 포함할 수 있다. The memory 1300 may include non-volatile memory. The memory 1300 is, for example, a flash memory type, a hard disk type, a solid state drive (SSD), a multimedia card micro type, and a card type memory ( For example, SD or XD memory), RAM (Random Access Memory) SRAM (Static Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), PROM (Programmable Read-Only Memory), a magnetic memory, a magnetic disk, and an optical disk.

프로세서(1200)는 메모리(1300)에 저장된 ASR 모듈(1310)에 대한 데이터를 이용하여 ASR(Automatic Speech Recognition)을 수행함으로써, 마이크(1100)를 통해 수신한 음성 신호를 텍스트(text)로 변환할 수 있다. The processor 1200 converts the speech signal received through the microphone 1100 into text by performing ASR (Automatic Speech Recognition) using data on the ASR module 1310 stored in the memory 1300. I can.

프로세서(1200)는 메모리(1300)에 저장된 디바이스 판단 모델(1340)에 관한 데이터를 이용하여, 변환된 텍스트를 분석하고, 텍스트의 분석 결과에 기초하여 복수의 디바이스(4000) 중 동작 수행 디바이스를 결정할 수 있다. 디바이스 판단 모델(1340)은 제1 자연어 이해 모델(1342)을 포함할 수 있다. 일 실시예에서, 프로세서(1200)는 디바이스 판단 모델(1340) 내에 포함된 제1 자연어 이해 모델(Natural Language Understanding; NLU)(1342)에 대한 데이터를 이용하여 텍스트를 분석하고, 텍스트의 분석 결과에 기초하여 복수의 디바이스(4000) 중 사용자의 의도에 따른 동작을 수행할 동작 수행 디바이스를 결정할 수 있다. The processor 1200 analyzes the converted text using data on the device determination model 1340 stored in the memory 1300 and determines a device performing an operation among the plurality of devices 4000 based on the analysis result of the text. I can. The device determination model 1340 may include a first natural language understanding model 1342. In one embodiment, the processor 1200 analyzes text by using data for a first natural language understanding (NLU) 1342 included in the device determination model 1340, and analyzes the text according to the analysis result of the text. Based on the plurality of devices 4000, a device performing an operation to perform an operation according to the user's intention may be determined.

제1 자연어 이해 모델(1342)은 음성 입력으로부터 변환된 텍스트를 분석하고, 분석 결과에 기초하여 동작 수행 디바이스를 결정하도록 학습된 모델이다. 제1 자연어 이해 모델(1342)은 텍스트를 해석함으로써, 인텐트(intent)를 결정할 수 있으며, 인텐트에 기초하여 동작 수행 디바이스를 결정하는데 이용될 수 있다. The first natural language understanding model 1342 is a model trained to analyze text converted from a voice input and determine a device for performing an operation based on the analysis result. The first natural language understanding model 1342 may determine an intent by analyzing text, and may be used to determine a device for performing an operation based on the intent.

일 실시예에서, 프로세서(1200)는 메모리(1300)에 저장된 제1 자연어 이해 모델(1342)에 관한 데이터를 이용하여, 텍스트를 형태소, 단어(word), 또는 구(phrase)의 단위로 파싱(parse)하고, 형태소, 단어, 또는 구의 언어적 특징(예: 문법적 요소)을 이용하여 파싱된 텍스트로부터 추출된 단어의 의미를 추론할 수 있다. 프로세서(1200)는, 추론된 단어의 의미를 제1 자연어 이해 모델(1342)에서 제공되는 기 정의된 인텐트들과 비교함으로써, 추론된 단어의 의미에 대응되는 인텐트를 결정할 수 있다. In one embodiment, the processor 1200 parses the text in units of morphemes, words, or phrases by using data on the first natural language understanding model 1342 stored in the memory 1300 ( parse), and can infer the meaning of the word extracted from the parsed text using the linguistic features (eg, grammatical elements) of the morpheme, word, or phrase. The processor 1200 may determine an intent corresponding to the meaning of the inferred word by comparing the meaning of the inferred word with predefined intents provided in the first natural language understanding model 1342.

프로세서(1200)는 인텐트와 디바이스 간의 관련성을 판단하는 매칭 모델에 기초하여, 텍스트로부터 인식된 인텐트와 관련된 디바이스를 동작 수행 디바이스로 결정할 수 있다. 일 실시예에서, 매칭 모델은 메모리(1300)에 저장된 디바이스 판단 모델(1340)에 대한 데이터에 포함되고, 룰 베이스 시스템(rule-based system)을 통한 학습을 통해 획득될 수 있지만, 이에 한정되지는 않는다. The processor 1200 may determine a device related to the intent recognized from the text as an operation performing device based on a matching model that determines the relationship between the intent and the device. In one embodiment, the matching model is included in data on the device determination model 1340 stored in the memory 1300, and may be obtained through learning through a rule-based system, but is not limited thereto. Does not.

일 실시예에서, 프로세서(1200)는 인텐트에 매칭 모델을 적용함으로써, 인텐트와 복수의 디바이스(4000, 도 1 참조) 간의 관련성 정도를 나타내는 복수의 수치값을 획득하고, 획득된 복수의 수치값 중 최대값을 갖는 디바이스를 최종 동작 수행 디바이스로 결정할 수 있다. 예를 들어, 인텐트가 제1 디바이스(4100, 도 1 참조) 및 제2 디바이스(4200, 도 1 참조)와 각각 관련되는 경우, 프로세서(1200)는 인텐트와 제1 디바이스(4100) 간의 관련성 정도를 나타내는 제1 수치값, 및 인텐트와 제2 디바이스(4200) 간의 관련성 정도를 나타내는 제2 수치값을 획득하고, 제1 수치값 및 제2 수치값 중 높은 수치값을 갖는 제1 디바이스(4100)를 동작 수행 디바이스로 결정할 수 있다. In one embodiment, the processor 1200 obtains a plurality of numerical values representing the degree of association between the intent and a plurality of devices (see 4000 (see FIG. 1)) by applying a matching model to the intent, and the obtained plurality of numerical values The device having the maximum value among the values may be determined as the device performing the final operation. For example, when the intent is related to the first device 4100 (see FIG. 1) and the second device 4200 (see FIG. 1), respectively, the processor 1200 A first device that obtains a first numerical value indicating the degree and a second numerical value indicating the degree of relationship between the intent and the second device 4200, and having a higher numerical value among the first numerical value and the second numerical value ( 4100) may be determined as an operation performing device.

예를 들어, 허브 디바이스(1000)가 사용자로부터 "더우니까 설정 온도 2°C 내려줘~"라는 음성 입력을 수신하는 경우, 프로세서(1200)는 ASR 모듈(1310)에 관한 데이터를 이용하여 음성 입력을 텍스트로 변환하는 ASR을 수행하고, 제1 자연어 이해 모델(1342)에 관련된 데이터를 이용하여 변환된 텍스트를 분석함으로써, '설정 온도 조절'이라는 인텐트를 획득할 수 있다. 프로세서(1200)는 매칭 모델을 적용하여 '설정 온도 조절'의 인텐트와 에어컨인 제1 디바이스(4100) 간의 관련도를 나타내는 제1 수치값, '설정 온도 조절'의 인텐트와 TV인 제2 디바이스(4200) 간의 관련도를 나타내는 제2 수치값, 및 '설정 온도 조절'과 공기 청정기인 신규 디바이스(4300, 도 1 참조) 간의 관련도를 나타내는 제3 수치값을 각각 획득할 수 있다. 프로세서(1200)는 획득된 수치값 중 최대값인 제1 수치값을 통해 '설정 온도 조절'과 관련된 동작 수행 디바이스로서 제1 디바이스(4100)를 결정할 수 있다. For example, when the hub device 1000 receives a voice input from the user saying "It's hot, drop the set temperature by 2°C", the processor 1200 uses the data on the ASR module 1310 to input the voice. An intent of'controlling a set temperature' may be obtained by performing ASR for converting the text into text and analyzing the converted text using data related to the first natural language understanding model 1342. The processor 1200 applies a matching model to provide a first numerical value indicating a degree of relation between the intent of'set temperature control' and the first device 4100 as an air conditioner, and the intent of'set temperature control' and a second value that is TV. A second numerical value indicating a degree of relation between the devices 4200 and a third numerical value indicating a degree of relation between the'set temperature control' and the new device 4300 (refer to FIG. 1) as an air purifier may be obtained, respectively. The processor 1200 may determine the first device 4100 as a device for performing an operation related to'setting temperature control' based on a first numerical value that is a maximum value among the obtained numerical values.

다른 예에서, 허브 디바이스(1000)가 사용자로부터 "영화 어벤져스 틀어줘~"라는 음성 입력을 수신하는 경우, 프로세서(1200)는 음성 입력으로부터 변환된 텍스트를 분석하여, '컨텐트 재생(play)'이라는 인텐트를 획득할 수 있다. 프로세서(1200)는 매칭 모델을 이용하여 산출된 '컨텐트 재생'의 인텐트와 에어컨인 제1 디바이스(4100) 간의 관련도를 나타내는 제1 수치값, '컨텐트 재생'의 인텐트와 TV인 제2 디바이스(4200) 간의 관련도를 나타내는 제2 수치값, 및 '컨텐트 재생'의 인텐트와 공기 청정기인 신규 디바이스(4300) 간의 관련도를 나타내는 제3 수치값 중 최대값인 제2 수치값 정보에 기초하여, 제2 디바이스(4200)를 '컨텐트 재생'과 관련된 동작 수행 디바이스로 결정할 수 있다. In another example, when the hub device 1000 receives a voice input of "Play Movie Avengers~" from the user, the processor 1200 analyzes the text converted from the voice input and plays'content'. You can acquire an intent called. The processor 1200 includes a first numerical value indicating the degree of relation between the intent of'content playback' calculated using the matching model and the first device 4100 as an air conditioner, the intent of'content playback' and a second value of the TV. In the second numerical value information, which is the maximum value among the second numerical values indicating the degree of relation between the devices 4200 and the third numerical values indicating the degree of relation between the intent of'content playback' and the new device 4300, which is an air purifier. Based on this, the second device 4200 may be determined as a device for performing an operation related to'content playback'.

그러나, 전술한 예시로 한정되는 것은 아니고, 프로세서(1200)는 인텐트와 복수의 디바이스 간의 관련성 정도를 나타내는 수치값을 높은 순서로 나열하여, 미리 정해진 개수의 디바이스를 동작 수행 디바이스로 결정할 수도 있다. 일 실시예에서, 프로세서(1200)는 관련성 정도를 나타내는 수치값이 소정의 임계치 이상인 디바이스를 인텐트와 관련된 동작 수행 디바이스로 결정할 수 있다. 이 경우, 복수의 디바이스가 동작 수행 디바이스로 결정될 수 있다. However, it is not limited to the above-described example, and the processor 1200 may determine a predetermined number of devices as an operation performing device by arranging numerical values indicating a degree of association between an intent and a plurality of devices in high order. In an embodiment, the processor 1200 may determine a device having a numerical value indicating a degree of relevance equal to or greater than a predetermined threshold as a device for performing an operation related to the intent. In this case, a plurality of devices may be determined as an operation performing device.

프로세서(1200)는 예를 들어, 룰 베이스 시스템(rule-based system)을 이용하여 인텐트와 동작 수행 디바이스 간의 매칭 모델을 학습할 수 있으나, 이에 한정되는 것은 아니다. 프로세서(1200)가 이용하는 인공지능 모델은 예를 들어, 신경망 베이스 시스템(neural network-based system)(예: 컨볼루션 신경망(convolution neural network; CNN, 순환 신경망(recurrent neural network; RNN), SVM(Support Vector Machine), 선형 회귀(linear regression), 로지스틱 회귀(logistic regression), 나이브 베이즈 분류(Naive Bayes), 랜덤 포레스트(random forest), decision tree, 또는 k-nearest neighbor algorithm 일 수 있다. 또는, 전술한 것의 조합 또는 이와 다른 인공지능 모델일 수도 있다. 프로세서(1200)가 이용하는 인공지능 모델들은 디바이스 판단 모델(1340) 내에 저장되어 있을 수 있다. The processor 1200 may learn a matching model between an intent and an operation performing device using, for example, a rule-based system, but is not limited thereto. The artificial intelligence model used by the processor 1200 is, for example, a neural network-based system (e.g., a convolution neural network; CNN, a recurrent neural network; RNN), and SVM (Support Vector Machine), linear regression, logistic regression, Naive Bayes, random forest, decision tree, or k-nearest neighbor algorithm. A combination of one or another artificial intelligence model may be used, and the artificial intelligence models used by the processor 1200 may be stored in the device determination model 1340.

허브 디바이스(1000)의 메모리(1300)에 저장되는 디바이스 판단 모델(1340)은, 허브 디바이스(1000)의 사용자 계정에 따라 등록된 복수의 디바이스(4000) 중에서 동작 수행 디바이스를 결정할 수 있다. 허브 디바이스(1000)는 통신 인터페이스(1400)를 이용하여, 음성 비서 서버(2000)로부터 복수의 디바이스(4000) 각각에 관한 디바이스 정보를 수신할 수 있다. 디바이스 정보는 예를 들어, 복수의 디바이스(4000) 각각의 식별 정보(예를 들어, 디바이스 id 정보), 복수의 디바이스(4000) 각각의 디바이스 타입, 복수의 디바이스(4000) 각각의 기능 수행 능력(capability), 위치 정보, 및 상태 정보 중 적어도 하나를 포함할 수 있다. 프로세서(1200)는 메모리(1300)에 저장된 디바이스 판단 모델(1340)에 관한 데이터를 이용하여, 디바이스 정보에 기초하여 복수의 디바이스(4000) 중 인텐트에 따라 동작을 수행할 디바이스를 결정할 수 있다. The device determination model 1340 stored in the memory 1300 of the hub device 1000 may determine a device performing an operation from among the plurality of devices 4000 registered according to the user account of the hub device 1000. The hub device 1000 may receive device information regarding each of the plurality of devices 4000 from the voice assistant server 2000 by using the communication interface 1400. The device information includes, for example, identification information (e.g., device ID information) of each of the plurality of devices 4000, a device type of each of the plurality of devices 4000, and a function performance capability of each of the plurality of devices 4000 ( capability), location information, and status information. The processor 1200 may determine a device to perform an operation according to an intent among the plurality of devices 4000 based on device information, using data on the device determination model 1340 stored in the memory 1300.

일 실시예에서, 프로세서(1200)는 디바이스 판단 모델(1340)을 이용하여, 허브 디바이스(1000)의 사용자 계정과 동일한 사용자 계정에 기 등록된 복수의 디바이스(4000) 각각과 인텐트의 관련도를 나타내는 수치값을 분석하고, 복수의 디바이스(4000) 각각과 인텐트 간의 관련도를 나타내는 수치값 중 최대값을 갖는 디바이스를 동작 수행 디바이스로 결정할 수 있다. In one embodiment, the processor 1200 uses the device determination model 1340 to determine the relationship between each of the plurality of devices 4000 previously registered in the same user account as the user account of the hub device 1000 and the intent. The indicated numerical value may be analyzed, and a device having a maximum value among numerical values indicating a degree of relationship between each of the plurality of devices 4000 and the intent may be determined as the operation performing device.

디바이스 판단 모델(1340)은 허브 디바이스(1000)의 사용자와 동일한 사용자 계정으로 로그인하여 등록된 복수의 디바이스(4000) 만을 디바이스 후보(candidate)로 하여 동작 수행 디바이스를 결정하도록 구성되는바, 인텐트와의 관련도 판단을 위하여 프로세서(1200)에 의해 수행되는 연산량이 음성 비서 서버(2000)의 프로세서(2200, 도 3 참조)에 비해 감소되는 기술적 효과가 있다. 또한, 연산량의 감소로 인하여, 동작 수행 디바이스를 결정하는데 소요되는 프로세싱 시간이 감소되고, 따라서 응답 속도가 개선되는 효과도 있다. The device determination model 1340 is configured to determine the device performing the operation by logging in with the same user account as the user of the hub device 1000 and using only the registered devices 4000 as device candidates. There is a technical effect that the amount of computation performed by the processor 1200 is reduced compared to the processor 2200 (refer to FIG. 3) of the voice assistant server 2000 in order to determine the relevance of In addition, due to the reduction in the amount of computation, the processing time required to determine the device for performing the operation is reduced, and thus the response speed is improved.

일 실시예에서, 프로세서(1200)는 제1 자연어 이해 모델(1342)을 이용하여 텍스트로부터 디바이스의 명칭을 획득하고, 메모리(1300)에 저장된 디바이스 판단 모델(1340)에 관한 데이터를 이용하여, 디바이스의 명칭에 기초하여 동작 수행 디바이스를 결정할 수도 있다. 일 실시예에서, 프로세서(1200)는 제1 자연어 이해 모델(1342)를 이용하여 텍스트로부터 디바이스와 관련된 보통 명칭 및 디바이스의 설치 위치에 관한 단어 또는 구를 추출하고, 추출된 디바이스의 보통 명칭 및 설치 위치에 기초하여 동작 수행 디바이스를 결정할 수 있다. 예를 들어, 음성 입력으로부터 변환된 텍스트가 "TV에서 영화 어벤져스 틀어줘~"인 경우, 프로세서(1200)는 제1 자연어 이해 모델(1342)을 이용하여 텍스트를 단어 또는 구 단위로 파싱하고, 단어 또는 구를 기 저장된 단어 또는 구와 비교하여 'TV'라는 디바이스의 명칭을 인식할 수 있다. 프로세서(1200)는 허브 디바이스(1000)의 사용자 계정(account)과 동일한 계정으로 로그인되고, 허브 디바이스(1000)와 연결된 복수의 디바이스(4000) 중 TV인 제2 디바이스(4200)를 동작 수행 디바이스로 결정할 수 있다. In one embodiment, the processor 1200 obtains the name of the device from the text using the first natural language understanding model 1342, and uses the data on the device determination model 1340 stored in the memory 1300, the device The device for performing the operation may be determined based on the name of. In one embodiment, the processor 1200 uses the first natural language understanding model 1342 to extract a common name associated with the device and a word or phrase relating to the installation location of the device from the text, and the extracted common name and installation of the device. The device for performing the operation may be determined based on the location. For example, if the text converted from the voice input is "Play Movie Avengers on TV~", the processor 1200 parses the text into words or phrases using the first natural language understanding model 1342, and The name of the device'TV' may be recognized by comparing the word or phrase with the previously stored word or phrase. The processor 1200 is logged in with the same account as the user account of the hub device 1000, and the second device 4200, which is a TV, among the plurality of devices 4000 connected to the hub device 1000, is used as an operation performing device. You can decide.

NLG 모듈(Natural Language Generator)(1320)은 허브 디바이스(1000)와 사용자 간의 대화 시 응답 메시지를 제공하는데 사용될 수 있다. 예를 들어, 프로세서(1200)는 NLG 모듈(1320)에 관한 데이터를 이용하여 "TV에서 영화를 재생하겠습니다." 또는 "에어컨의 설정 온도를 2°C만큼 내리겠습니다."등 응답 메시지를 생성할 수 있다. NLG 모듈(1320)에 의해 생성된 응답 메시지는 텍스트(text)로 구성된 메시지일 수 있다. The NLG module (Natural Language Generator) 1320 may be used to provide a response message during a conversation between the hub device 1000 and a user. For example, processor 1200 uses data about NLG module 1320 to "play a movie on TV." Alternatively, a response message such as "I will lower the set temperature of the air conditioner by 2°C" can be generated. The response message generated by the NLG module 1320 may be a message composed of text.

NLG 모듈(1320)은 프로세서(1200)에 의해 결정된 동작 수행 디바이스가 복수 개이거나, 또는 인텐트와의 관련성 정도가 유사하게 산출된 디바이스가 복수 개 존재하는 경우, 특정 동작 수행 디바이스를 결정하기 위한 질의 메시지를 생성하는데 이용되는 데이터를 저장할 수 있다. 일 실시예에서, 프로세서(1200)는 NLG 모듈(1320)에 관한 데이터를 이용하여, 복수의 디바이스 후보 중 어느 하나의 동작 수행 디바이스를 선택하기 위한 질의 메시지를 생성할 수 있다. 질의 메시지는 복수의 디바이스 후보 중 어느 하나의 디바이스를 동작 수행 디바이스로 결정할 것인지에 관하여 사용자의 응답을 유도하는 메시지일 수 있다. The NLG module 1320 queries for determining a device for performing a specific operation when there are a plurality of devices for performing an operation determined by the processor 1200 or for a plurality of devices whose degree of relevance to an intent is similarly calculated. You can store the data used to generate the message. In an embodiment, the processor 1200 may generate a query message for selecting a device for performing an operation from among a plurality of device candidates by using data on the NLG module 1320. The query message may be a message for inducing a response from a user regarding which one of the plurality of device candidates is to be determined as an operation performing device.

TTS 모듈(1330)은 NLG 모듈(1320)에 의해 생성된 텍스트 형태의 응답 메시지 또는 질의 메시지를 오디오 신호로 변환할 수 있다. 일 실시예에서, 프로세서(1200)는 TTS 모듈(1330)에 관한 데이터를 이용하여 텍스트 형태의 응답 메시지 또는 질의 메시지를 오디오 신호로 변환하고, 스피커를 통해 출력하도록 제어할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 동작 수행 디바이스로부터 동작의 실행 결과를 알리는 알림 메시지를 수신할 수 있다. 이 경우, 알림 메시지는 텍스트 형태인데, 프로세서(1200)는 TTS 모듈(1330)에 관한 데이터를 이용하여 텍스트 형태의 알림 메시지를 오디오 신호로 변환할 수 있다. 프로세서(1200)는 오디소 신호로 변환된 알림 메시지를 스피커를 통해 출력할 수 있다. The TTS module 1330 may convert a text response message or an inquiry message generated by the NLG module 1320 into an audio signal. In an embodiment, the processor 1200 may convert a text response message or an inquiry message into an audio signal by using data on the TTS module 1330 and control it to be output through a speaker. In an embodiment, the hub device 1000 may receive a notification message indicating an execution result of the operation from the device performing the operation. In this case, the notification message is in the form of text, and the processor 1200 may convert the notification message in the text form into an audio signal by using data on the TTS module 1330. The processor 1200 may output a notification message converted into an audio signal through a speaker.

허브 디바이스(1000)는. 허브 디바이스(1000)에 연결되는 신규 디바이스에 대한 정보를 획득하면, 음성 비서 서버(2000)에, 허브 디바이스(1000)에 저장된 디바이스 판단 모델에 대한 업데이트를 요청한다. 일 실시예에서, 허브 디바이스(1000)는 IoT 서버(3000)로부터 수신한 신규 디바이스의 디바이스 정보(예, 신규 디바이스의 식별 정보, 신규 디바이스의 타입 정보 등)에 기초하여, 사용자의 음성 입력으로부터 신규 디바이스와 관련된 텍스트를 분석하고, 신규 디바이스를 동작 수행 디바이스로 결정할 수 있도록, 메모리(1300, 도 2 참조)에 기 저장된 디바이스 판단 모델에 관한 업데이트를 요청하는 쿼리(query) 신호를 음성 비서 서버(2000)에 전송할 수 있다. 이 경우, 허브 디바이스(1000)는 적어도 사용자 계정 정보 및 허브 디바이스(1000)의 식별 정보(예를 들어, 허브 디바이스의 id 정보)를 쿼리 신호와 함께 음성 비서 서버(2000)에 전송할 수 있다.The hub device 1000 is. When information on a new device connected to the hub device 1000 is obtained, a request is made to the voice assistant server 2000 to update the device determination model stored in the hub device 1000. In one embodiment, the hub device 1000 is based on device information of a new device received from the IoT server 3000 (eg, identification information of a new device, type information of a new device, etc.), from a user's voice input. The voice assistant server 2000 sends a query signal for requesting an update on the device determination model previously stored in the memory 1300 (refer to FIG. 2) so that the text related to the device can be analyzed and a new device can be determined as an operation performing device. ). In this case, the hub device 1000 may transmit at least user account information and identification information (eg, ID information of the hub device) of the hub device 1000 to the voice assistant server 2000 together with a query signal.

다른 실시예에서, 허브 디바이스(1000)는 신규 디바이스로부터 신규 디바이스의 디바이스 정보(예, 신규 디바이스의 식별 정보, 신규 디바이스의 타입 정보 등)를 수신할 수 있다. 이 경우, 허브 디바이스(1000)는 신규 디바이스로부터 수신한 신규 디바이스의 디바이스 정보에 기초하여, 허브 디바이스(1000)에 기 저장된 디바이스 판단 모델에 관련 업데이트를 요청하는 쿼리 신호를 음성 비서 서버에 전송할 수 있다.In another embodiment, the hub device 1000 may receive device information (eg, identification information of a new device, type information of a new device, etc.) of a new device from the new device. In this case, the hub device 1000 may transmit a query signal requesting a related update to the device determination model previously stored in the hub device 1000 to the voice assistant server based on the device information of the new device received from the new device. .

허브 디바이스(1000)의 요청에 대응하여, 허브 디바이스(1000)는 음성 비서 서버(2000)로부터 업데이트된 디바이스 판단 모델을 수신하여 저장한다. 일 실시예에서, 허브 디바이스(1000)는, 신규 디바이스에 관한 사용자의 음성 입력을 분석하고, 분석 결과 신규 디바이스를 동작 수행 디바이스로 결정할 수 있도록 업데이트된 디바이스 판단 모델을 음성 비서 서버(2000)로부터 다운로드(download)하고, 허브 디바이스(1000) 내부의 메모리(1300, 도 2 참조)에 업데이트된 디바이스 판단 모델을 저장할 수 있다. 디바이스 판단 모델의 업데이트 요청 및 업데이트된 디바이스 판단 모델을 수신하여 저장하는 동작은, 별도의 소프트웨어 모듈에 의해 수행될 수도 있다. 또한, 이러한 동작은, 기능 판단 모델 관리 모듈(1360)에 의해 수행될 수도 있다.In response to the request of the hub device 1000, the hub device 1000 receives and stores the updated device determination model from the voice assistant server 2000. In one embodiment, the hub device 1000 analyzes a user's voice input for a new device, and downloads an updated device determination model from the voice assistant server 2000 so that a new device can be determined as an operation performing device as a result of the analysis. (download), and the updated device determination model may be stored in the memory 1300 (refer to FIG. 2) inside the hub device 1000. The operation of requesting an update of the device determination model and receiving and storing the updated device determination model may be performed by a separate software module. Also, this operation may be performed by the function determination model management module 1360.

리소스 트래킹 모듈(resource tracking module)(1350)은 허브 디바이스(1000) 및 복수의 디바이스(4000)의 구성 요소, 예를 들어 프로세서(1200, 4120, 4220, 4320) 및 메모리(1300, 4130, 4230, 4310)의 리소스 상태를 모니터링하고, 리소스 상태 정보를 획득하는 모듈이다. 리소스 상태 정보는 허브 디바이스(1000) 및 복수의 디바이스(4000)의 프로세서(1200, 4120, 4220, 4320) 및 메모리(1300, 4130, 4230, 4310)의 사용 상태를 나타내는 정보이다. 리소스 상태 정보는 예를 들어, 허브 디바이스(1000) 및 복수의 디바이스(4000)의 메모리(1300, 4130, 4230, 4310)의 잔여 용량, 평균 RAM 사용 용량, 및 평균 프로세서 점유율 정보 중 적어도 하나를 포함할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 리소스 트래킹 모듈(1350)을 이용하여, 프로세서(1200, 4120, 4220, 4320)의 평균 프로세싱 속도, 메모리(1300, 4130, 4230, 4310)의 잔여 용량, 및 RAM의 평균 잔여 용량 중 적어도 하나를 실시간으로 또는 주기적으로 모니터링할 수 있다. 리소스 트래킹 모듈(1350)은 모니터링을 통해 획득한 리소스 상태 정보를 기능 판단 모델 관리 모듈(1360)에 제공할 수 있다. The resource tracking module 1350 includes components of the hub device 1000 and the plurality of devices 4000, for example, processors 1200, 4120, 4220, 4320, and memories 1300, 4130, 4230, and 4310) is a module that monitors the resource status and obtains resource status information. The resource status information is information indicating the usage status of the processors 1200, 4120, 4220, 4320 and the memories 1300, 4130, 4230, and 4310 of the hub device 1000 and the plurality of devices 4000. The resource status information includes, for example, at least one of the remaining capacity of the hub device 1000 and the memory (1300, 4130, 4230, 4310) of the plurality of devices 4000, the average RAM usage capacity, and the average processor occupancy information. can do. In one embodiment, the hub device 1000 uses the resource tracking module 1350, the average processing speed of the processors 1200, 4120, 4220, 4320, the remaining capacity of the memories 1300, 4130, 4230, 4310, And at least one of the average remaining capacity of the RAM may be monitored in real time or periodically. The resource tracking module 1350 may provide resource state information acquired through monitoring to the function determination model management module 1360.

기능 판단 모델 관리 모듈(1360)은 기능 판단 모델(1370)을 허브 디바이스(1000) 및 복수의 디바이스(4000)의 메모리(1300, 4130, 4230, 4310)에 저장하여 처리할 지 여부를 판단할 수 있다. 기능 판단 모델이 복수 개인 경우, 복수의 기능 판단 모델(1370) 각각에 대해 허브 디바이스(1000) 및 복수의 디바이스의 메모리(1300, 4130, 4230, 4310)에 저장하여 처리할 것인지 여부를 판단할 수 있다. 기능 판단 모델 관리 모듈(1360)은 기능 판단 모델(1370)을 허브 디바이스(1000) 및 복수의 디바이스(4000) 중 어느 디바이스의 메모리(1300, 4130, 4230, 4310)에 저장할 지를 결정할 수도 있다. The function determination model management module 1360 may determine whether to process the function determination model 1370 by storing it in the hub device 1000 and the memories 1300, 4130, 4230, and 4310 of the plurality of devices 4000. have. When there are multiple function determination models, it is possible to determine whether to store and process the plurality of function determination models 1370 in the hub device 1000 and the memories 1300, 4130, 4230, and 4310 of each of the plurality of devices. have. The function determination model management module 1360 may determine whether to store the function determination model 1370 in the memory 1300, 4130, 4230, or 4310 of which device among the hub device 1000 and the plurality of devices 4000.

기능 판단 모델 관리 모듈(1360)은 음성 비서 서버(2000, 도 1 참조)로부터 수신한 기능 판단 모델의 정보(예를 들어, 기능 판단 모델의 용량 정보)와 리소스 트래킹 모듈(1350)로부터 수신한 리소스 상태 정보를 비교 및 분석할 수 있다. 기능 판단 모델 관리 모듈(1360)은 비교/분석 결과를 이용하여, 음성 비서 서버(2000)로부터 기능 판단 모델을 다운로드(download)하고, 다운로드된 기능 판단 모델을 허브 디바이스(1000) 및 복수의 디바이스(4000)의 메모리(1300, 4130, 4230, 4310)에 저장할 지 여부를 결정할 수 있다. 일 실시예에서, 기능 판단 모델 관리 모듈(1360)은 음성 비서 서버(2000)로부터 수신한 신규 디바이스(4300, 도 1 참조)에 대응하는 기능 판단 모델을 메모리(1300, 4130, 4230, 4310)에 저장할 지 여부를 결정할 수 있다. 일 실시예에서, 기능 판단 모델 관리 모듈(1360)은 리소스 트래킹 모듈(1350)로부터 획득한 리소스 상태 정보에 기초하여, 허브 디바이스(1000) 및 복수의 디바이스(4000)의 사용 패턴에 따른 프로세서(1200, 4120, 4220, 4320) 및 메모리(1300, 4130, 4230, 4310)의 잔여 용량 및 점유율을 분석할 수 있다. 예를 들어, 사용자가 허브 디바이스(1000)를 통해 음악이나 동영상 컨텐츠를 플레이하는 빈도가 잦은 경우, 디코딩(decoding)이 지속적으로 발생하는바, 프로세서(1200)의 연산을 통한 점유율이 높고, RAM의 잔여 용량이 낮을 수 있다. 다른 예에서, 사용자가 복수의 디바이스(4000) 중 하나를 통해 날씨를 물어보는 등의 간단한 동작만을 수행하도록 하는 경우, 프로세서(4120, 4220, 4320)의 점유율이 높지 않고, 메모리(4130, 4230, 4310)의 잔여 용량이 많을 수 있다. 허브 디바이스(1000)의 기능 판단 모델 관리 모듈(1360)은 프로세서(1200, 4120, 4220, 4320) 및 메모리(1300, 4130, 4230, 4310)의 리소스 상태 정보를 기능 판단 모델의 정보와 비교함으로써, 기능 판단 모델을 허브 디바이스(1000)의 메모리(1300) 또는 복수의 디바이스(4000)의 메모리(4130, 4230, 4310) 내에 저장할 지 여부를 결정할 수 있다. 여기서, 기능 판단 모델의 정보는 기능 판단 모델의 용량 정보, 기능 판단 모델을 판독하기 위하여 점유되는 RAM 점유율 정보, 및 프로세서(1200, 4120, 4220, 4320)가 기능 판단 모델을 판독하여 기능에 따른 세부 동작들 및 세부 동작들의 순서를 통해 동작 정보를 획득하기 위하여 소요되는 가상의 처리 시간(simulated processing time)에 관한 정보 중 적어도 하나를 포함할 수 있다. The function determination model management module 1360 includes information of a function determination model (eg, capacity information of a function determination model) received from the voice assistant server 2000 (refer to FIG. 1) and a resource received from the resource tracking module 1350. Status information can be compared and analyzed. The function determination model management module 1360 downloads a function determination model from the voice assistant server 2000 using the comparison/analysis result, and the downloaded function determination model is transferred to the hub device 1000 and a plurality of devices ( 4000) of the memory (1300, 4130, 4230, 4310) can be determined whether to store. In one embodiment, the function determination model management module 1360 stores a function determination model corresponding to the new device 4300 (see FIG. 1) received from the voice assistant server 2000 in the memories 1300, 4130, 4230, and 4310. You can decide whether to save it or not. In one embodiment, the function determination model management module 1360 is based on the resource state information obtained from the resource tracking module 1350, the processor 1200 according to the usage pattern of the hub device 1000 and the plurality of devices 4000 , 4120, 4220, 4320) and the remaining capacity and occupancy of the memories 1300, 4130, 4230, 4310 can be analyzed. For example, when a user frequently plays music or video content through the hub device 1000, decoding occurs continuously, so that the occupancy rate through the operation of the processor 1200 is high, and the RAM is The remaining capacity may be low. In another example, when the user only performs a simple operation such as asking for the weather through one of the plurality of devices 4000, the occupancy of the processors 4120, 4220, 4320 is not high, and the memory 4130, 4230, 4310) may have a large amount of remaining capacity. The function determination model management module 1360 of the hub device 1000 compares the resource state information of the processors 1200, 4120, 4220, 4320 and the memories 1300, 4130, 4230, 4310 with the information of the function determination model, It may be determined whether to store the function determination model in the memory 1300 of the hub device 1000 or the memories 4130, 4230, and 4310 of the plurality of devices 4000. Here, the information on the function determination model includes information on the capacity of the function determination model, information on the occupied RAM occupancy to read the function determination model, and the processor 1200, 4120, 4220, 4320 reads the function determination model and details according to the function. It may include at least one of information on a simulated processing time required to obtain motion information through an order of operations and detailed operations.

일 실시예에서, 허브 디바이스(1000)는 기능 판단 모델 관리 모듈(1360)에 관한 데이터를 이용함으로써, 음성 비서 서버(2000)로부터 수신한 기능 판단 모델의 정보에 기초하여, 메모리(1300, 4130, 4230, 4310)의 잔여 용량과 수신한 기능 판단 모델의 용량 정보를 비교하는 시뮬레이션을 수행할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 기능 판단 모델 관리 모듈(1360)에 관한 데이터를 이용하여, 프로세서(1200, 4120, 4220, 4320)와 연결된 RAM의 평균 잔여 용량과 기능 판단 모델을 처리하는 경우의 점유하는 RAM 용량을 비교하는 시뮬레이션을 수행할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 기능 판단 모델 관리 모듈(1360)에 관한 데이터를 이용하여, 프로세서(1200)의 평균 프로세싱 속도를 고려한 기능 판단 모델을 처리하는 경우의 프로세싱 시간을 시뮬레이션할 수 있다. In one embodiment, the hub device 1000 uses data on the function determination model management module 1360, and based on the information of the function determination model received from the voice assistant server 2000, the memory 1300, 4130, and Simulation of comparing the remaining capacity of 4230 and 4310 with capacity information of the received function determination model may be performed. In one embodiment, the hub device 1000 processes the average remaining capacity of the RAM connected to the processors 1200, 4120, 4220, 4320 and the function determination model using data on the function determination model management module 1360. It is possible to perform a simulation comparing the amount of RAM occupied in the case. In one embodiment, the hub device 1000 may simulate a processing time in the case of processing a function determination model in consideration of the average processing speed of the processor 1200 by using data on the function determination model management module 1360. have.

일 실시예에서, 기능 판단 모델 관리 모듈(1360)은 메모리(1300)의 잔여 용량과 기능 판단 모델의 용량의 차가 기설정된 임계값 보다 작은 경우, 기능 판단 모델을 메모리(1300)에 저장하지 않기로 결정할 수 있다. 일 실시예에서, 기능 판단 모델 관리 모듈(1360)은 기능 판단 모델의 가상 처리 시간이 기설정된 임계 시간 보다 긴 경우, 기능 판단 모델을 메모리(1300)에 저장하지 않기로 결정할 수 있다. 허브 디바이스(1000)가 기능 판단 모델 관리 모듈(1360)에 관한 데이터를 이용하여, 기능 판단 모델을 메모리(1300)에 저장할 지 여부를 결정하는 구체적인 방법은 도 7에서 상세하게 설명하기로 한다. In one embodiment, the function determination model management module 1360 determines not to store the function determination model in the memory 1300 when the difference between the remaining capacity of the memory 1300 and the capacity of the function determination model is less than a preset threshold. I can. In an embodiment, when the virtual processing time of the function determination model is longer than a preset threshold time, the function determination model management module 1360 may determine not to store the function determination model in the memory 1300. A detailed method of determining whether or not to store the function determination model in the memory 1300 by the hub device 1000 using data on the function determination model management module 1360 will be described in detail with reference to FIG. 7.

다른 실시예에서, 기능 판단 모델 관리 모듈(1360)은 신규 디바이스(4300)에 대응하는 기능 판단 모델의 특성을 분석할 수 있다. 기능 판단 모델의 특성은, 기능 판단 모델을 통해서 디바이스가 수행하는 것으로 판단되는 기능에 대한 상세 정보를 기초로 분석된다. 기능에 대한 상세한 정보는, 기능의 명칭, 기능에 대한 상세한 설명(description), 기능을 수행에 필요한 리소스(메모리량, 프로세싱 속도 등), 기능을 수행하는 데 필요한 애플리케이션 및 기능의 대상이 되는 컨텐츠의 종류 등을 포함할 수 있다. 기능 판단 모델 관리 모듈(1360)은 기능에 대한 상세 정보를 획득하여, 이미 저장하고 있는 사용자의 음성 비서 사용 패턴, 미리 정해진 규칙들(하나 또는 복수 개), 사용자가 사전에 입력된 민감 정보에 대한 종류에 따라, 기능 판단 모델의 특성을 분석한다.In another embodiment, the function determination model management module 1360 may analyze characteristics of a function determination model corresponding to the new device 4300. The characteristic of the function determination model is analyzed based on detailed information on a function determined to be performed by the device through the function determination model. Detailed information on the function includes the name of the function, a detailed description of the function, the resources required to perform the function (memory amount, processing speed, etc.), the application required to perform the function, and the content subject to the function. It may include types and the like. The function determination model management module 1360 acquires detailed information on a function, and provides information on the already stored user's voice assistant usage pattern, predetermined rules (one or more), and sensitive information previously input by the user. According to the type, the characteristics of the function judgment model are analyzed.

기능 판단 모델의 특성은, 디바이스에서 기능을 수행하여 그 결과를 해당 디바이스 또는 다른 주변 디바이스를 통해 출력하는 데까지 요구되는 최소 시간을 포함하며, 요구되는 최소 시간은 미리 정해진 규칙에 의해 결정될 수 있다. 예를 들면, 허브 디바이스는, 디바이스의 전원 On/Off에 대한 기능에 대한 기본 최소 시간은 0.1ms, 디바이스에서 동영상 컨텐츠를 검색하여 재생하는 기능에 대한 기본 최소 시간은 1s라는 정보를 저장할 수 있다. 또한, 허브 디바이스는, 사용자가 음성을 입력한 디바이스와 기능 수행 대상이 되는 디바이스가 서로 다른 경우에는, 기본 최소 시간에 0.5ms가 추가되도록 계산하는 규칙을 저장할 수 있다.The characteristic of the function determination model includes a minimum time required for a device to perform a function and output the result through a corresponding device or another peripheral device, and the required minimum time may be determined by a predetermined rule. For example, the hub device may store information that the basic minimum time for a function for power on/off of the device is 0.1 ms, and the basic minimum time for a function for searching and playing video content from the device is 1 s. In addition, the hub device may store a rule that calculates that 0.5 ms is added to the basic minimum time when a device to which a user inputs a voice and a device to perform a function are different from each other.

또한, 기능 판단 모델의 특성은, 사용자의 음성 비서 사용 패턴을 고려했을 때, 사용자가 자주 사용하는 기능과 유사한지 여부를 포함한다. 예를 들면, 허브 디바이스는, 허브 디바이스가 음악 재생을 2일에 한 번씩 재생한다는 사용 패턴 정보를 저장할 수 있다. 이 경우, 신규 디바이스의 기능 판단 모델이 포함하고 있는 기능에 대한 상세 정보를 이용하여, 신규 디바이스의 기능 판단 모델이 음악 재생과 관련된 기능을 포함하고 있고, 이 기능은 사용자가 2일에 한 번씩 재생하는 기능과 일치한다는 것을 판단할 수 있다.In addition, the characteristic of the function determination model includes whether or not the function is similar to a function frequently used by the user when the user's voice assistant usage pattern is considered. For example, the hub device may store usage pattern information indicating that the hub device plays music once every two days. In this case, using detailed information on the functions included in the function determination model of the new device, the function determination model of the new device includes a function related to music playback, and this function is played by the user every two days. It can be determined that it is consistent with the function to be performed.

또한, 기능 판단 모델의 특성은, 해당 기능을 수행하는 데 사용자의 민감 정보를 활용하는 지 여부를 포함하며, 사용자의 민감 정보는 미리 정해진 규칙에 의해 판단되거나, 사용자가 사전에 입력한 민감 정보에 대한 종류에 따라 판단될 수 있다. 예를 들어, 허브 디바이스는, 신규 디바이스의 기능 판단 모델이 스케줄 정보를 획득하여 캘린더 앱에 등록하는 기능을 포함하고 있는 경우, 스케줄 정보가 사용자의 민감 정보인지를 판단한다. 허브 디바이스는, 사용자의 사전에 입력한 민감 정보의 종류에 따라, 스케줄 정보가 사용자의 민감 정보라고 판단할 수 있다. In addition, the characteristics of the function determination model include whether or not the user's sensitive information is used to perform the function, and the user's sensitive information is determined by a predetermined rule or is based on the sensitive information previously entered by the user. It can be judged according to the type. For example, when the function determination model of the new device includes a function of acquiring schedule information and registering it in a calendar app, the hub device determines whether the schedule information is sensitive information of the user. The hub device may determine that the schedule information is the user's sensitive information according to the type of sensitive information previously input by the user.

기능 판단 모델 관리 모듈(1360)은 기능 판단 모델의 특성을 분석하여, 신규 디바이스에 대응하는 기능 판단 모델을 다운로드 받을 지 여부를 결정할 수 있다. 일 예로, 기능 판단 모델의 특성을 분석한 결과, 기능 판단 모델이 포함하고 있는 기능 중 일부가 수행되여 그 결과를 출력하는 데까지 요구되는 최소 시간이 일정 시간 이하인 경우, 허브 디바이스 또는 신규 디바이스에 기능 판단 모델을 다운로드 받는 것으로 결정할 수 있다. The function determination model management module 1360 may determine whether to download a function determination model corresponding to a new device by analyzing characteristics of the function determination model. For example, as a result of analyzing the characteristics of the function determination model, if some of the functions included in the function determination model are performed and the minimum time required to output the result is less than a certain amount of time, the function is determined by the hub device or a new device. You can decide to download the model.

또 다른 예로, 기능 판단 모델의 특성을 분석한 결과, 기능 판단 모델이 포함하고 있는 기능 중 일부가 사용자가 자주 사용하는 기능과 유사하다고 판단되는 경우, 허브 디바이스 또는 신규 디바이스에 기능 판단 모델을 다운로드 받는 것으로 결정할 수 있다. 또 다른 예로, 기능 판단 모델의 특성을 분석한 결과, 기능 판단 모델이 포함하고 있는 기능 중 일부가 사용자의 민감 정보를 활용하는 것으로 판단되는 경우, 허브 디바이스 또는 신규 디바이스에 기능 판단 모델을 다운로드 받는 것으로 결정할 수 있다.As another example, as a result of analyzing the characteristics of the function determination model, if it is determined that some of the functions included in the function determination model are similar to the functions frequently used by the user, the function determination model is downloaded to a hub device or a new device. Can be determined. As another example, as a result of analyzing the characteristics of the function determination model, if it is determined that some of the functions included in the function determination model utilize the user's sensitive information, the function determination model is downloaded to a hub device or a new device. You can decide.

또 다른 실시예에서, 기능 판단 모델 관리 모듈(1360)은, 신규 디바이스의 제조사 또는 모델명 정보를 획득하여, 제조사 또는 모델명 정보에 따라 신규 디바이스에 대응하는 기능 판단 모델을 다운로드 받을 지를 결정할 수 있다. 허브 디바이스는, 제조사 또는 모델명 별로 기능 판단 모델을 다운로드 받을 지 유무에 대한 데이터를 미리 저장하고 있을 수 있다. 허브 디바이스는, 미리 저장된 데이터를 이용하여, 신규 디바이스의 제조사 또는 모델명 정보가 기능 판단 모델을 다운로드 받는 것으로 지정되어 있다고 판단하면, 기능 판단 모델을 다운로드 받는 것으로 결정할 수 있다. 또한, 허브 디바이스는, 허브 디바이스의 제조사 정보와 신규 디바이스의 제조사 정보를 비교하여, 일치한다고 판단되는 경우 신규 디바이스에 대응하는 기능 판단 모델을 다운로드 받도록 결정할 수 있다. In another embodiment, the function determination model management module 1360 may obtain manufacturer or model name information of a new device and determine whether to download a function determination model corresponding to the new device according to the manufacturer or model name information. The hub device may pre-store data on whether to download a function determination model for each manufacturer or model name. When the hub device determines that the manufacturer or model name information of the new device is designated as downloading the function determination model, using the previously stored data, it may determine that the function determination model is to be downloaded. In addition, the hub device may compare the manufacturer information of the hub device with the manufacturer information of the new device and, if it is determined to match, may determine to download a function determination model corresponding to the new device.

또 다른 실시예에서는, 기능 판단 모델 관리 모듈(1360)은, 신규 디바이스의 제조사 또는 모델명 정보를 획득하여, 제조사 또는 모델명 정보에 따라 신규 디바이스에 대응하는 기능 판단 모델을 다운로드 받을 때, 데이터 어댑터 모듈(미도시)을 기능 판단 모델과 함께 다운로드 받을 수 있다. 데이터 어댑터 모듈(미도시)은, 음성 비서 서버와 IoT 서버를 연동시키기 위해 음성 비서 서버의 출력 데이터를 IoT 서버에서 처리 가능한 형태의 데이터로 변환하는 SW 모듈을 의미한다. 일 실시예에서, 데이터 어댑터 모듈은, 디바이스가 외부로부터 획득한 데이터를 디바이스 내부에 저장된 데이터와 비교하여 유사성을 판단하고, 외부로부터 획득한 데이터를 그와 가장 유사한 데이터로 변환할 수 있다. 데이터의 변환은, 변환 전 데이터와 변환 후 데이터의 쌍들(pairs)로 구성된 데이터 베이스에 기반하여 수행될 수 있다. 이 경우, 데이터 어댑터 모듈은, 외부로부터 획득한 데이터와 변환 전 데이터를 비교하여 유사성을 판단하고, 변환 전 데이터 중 외부로부터 획득한 데이터와 가장 유사한 데이터를 확인한다. 데이터 어댑터 모듈은, 확인된 변환 전 데이터를 이용하여 대응하는 변환 후 데이터를 확인하여, 확인된 변환 후 데이터를 출력한다. 다른 실시예에서, 데이터 어댑터 모듈은, 데이터 베이스 대신 데이터 변환 모델을 이용하여 외부로부터 획득한 데이터를 변환할 수 있다. 물론, 데이터 어댑터 모듈은, 데이터 베이스와 데이터 변환 모델을 함께 사용할 수 있다.In another embodiment, when the function determination model management module 1360 acquires manufacturer or model name information of a new device and downloads a function determination model corresponding to the new device according to the manufacturer or model name information, the data adapter module ( (Not shown) can be downloaded along with the function determination model. The data adapter module (not shown) refers to a SW module that converts output data of the voice assistant server into data in a form that can be processed by the IoT server in order to link the voice assistant server with the IoT server. In an embodiment, the data adapter module may determine similarity by comparing data obtained from the outside by the device with data stored inside the device, and convert data obtained from the outside into data most similar thereto. Data conversion may be performed based on a database composed of pairs of data before conversion and data after conversion. In this case, the data adapter module compares data obtained from the outside with data before conversion to determine similarity, and checks the data most similar to data obtained from outside among the data before conversion. The data adapter module checks the corresponding post-conversion data using the confirmed pre-conversion data, and outputs the confirmed data after conversion. In another embodiment, the data adapter module may convert externally acquired data using a data conversion model instead of a database. Of course, the data adapter module can use a database and a data conversion model together.

IoT 서버에서 처리 가능한 형태의 데이터는, 복수의 디바이스 중 적어도 하나가 IoT 서버로부터 수신하여 특정 기능을 수행하는 데 이용되는 데이터와 동일한 형태의 데이터일 수 있다. 또한, 데이터 어댑터 모듈은, IoT 서버의 출력 데이터를 음성 비서 서버에서 처리 가능한 형태의 데이터로 변환하는 동작을 수행할 수도 있다. 음성 비서 서버에서 처리 가능한 형태의 데이터는, 허브 디바이스가 음성 비서 서버로부터 수신하는 복수의 디바이스 중 적어도 하나에 대한 정보와 동일한 형태의 데이터일 수 있다.The data in a form that can be processed by the IoT server may be data in the same form as data that is received from the IoT server by at least one of the plurality of devices and used to perform a specific function. In addition, the data adapter module may perform an operation of converting the output data of the IoT server into data in a form that can be processed by the voice assistant server. The data in a form that can be processed by the voice assistant server may be data in the same form as information on at least one of a plurality of devices that the hub device receives from the voice assistant server.

일 예로, 음성 비서 서버의 출력 데이터는 세부 동작에 관한 정보를 포함하며, IoT 서버의 출력 데이터는 디바이스의 식별 정보, 디바이스 타입, 기능 수행 능력, 위치 정보 및 상태 정보 중 적어도 하나를 포함하는 디바이스 정보를 포함한다. 허브 디바이스가, 데이터 어댑터 모듈을 허브 디바이스에 다운로드 받는 경우, 데이터 어댑터 모듈(미도시)은 허브 디바이스와 신규 디바이스가 연동되도록 허브 디바이스의 출력 데이터를 변환한다. 상세하게는, 데이터 어댑터 모듈은, 허브 디바이스에 다운로드된 기능 판단 모델과 신규 디바이스 내에 저장된 세부 동작을 실행하기 위한 SW 모듈(미도시) 간의 연동을 위해, 기능 판단 모델의 출력 데이터를 신규 디바이스에서 처리 가능한 형태로 변환한다. 또한, 데이터 어댑터 모듈은, 허브 디바이스가 신규 디바이스로부터 수신한 신규 디바이스에 대한 디바이스 정보를 수신하면, 수신한 디바이스 정보를 허브 디바이스에서 처리 가능한 형태로 변환한다.For example, the output data of the voice assistant server includes information on detailed operations, and the output data of the IoT server includes device information including at least one of device identification information, device type, function performance capability, location information, and status information. Includes. When the hub device downloads the data adapter module to the hub device, the data adapter module (not shown) converts the output data of the hub device so that the hub device and the new device are interlocked. Specifically, the data adapter module processes the output data of the function determination model in the new device for interworking between the function determination model downloaded to the hub device and a SW module (not shown) for executing detailed operations stored in the new device. Convert it into a possible form. In addition, when the hub device receives device information for a new device received from the new device, the data adapter module converts the received device information into a form that can be processed by the hub device.

데이터 어댑터 모듈은 신규 디바이스의 제조사 또는 모델명에 대응하도록 구성될 수 있다. 이 경우, 음성 비서 서버는, 제조사 또는 모델명 별로 데이터 어댑터 모듈을 저장할 수 있으며, 복수 개의 데이터 어댑터 모듈을 저장할 수 있다. 허브 디바이스는, 신규 디바이스의 제조사 또는 모델명 정보에 기초하여, 음성 비서 서버에 신규 디바이스에 대응하는 데이터 어댑터 모듈을 요청할 수 있다. 또한, 음성 비서 서버는, 허브 디바이스의 요청이 없는 경우에도, IoT 서버로부터 획득한 신규 디바이스의 제조사 또는 모델명 정보에 기초하여 신규 디바이스에 대응하는 데이터 어댑터 모듈을 허브 디바이스로 전송할 수 있다.The data adapter module may be configured to correspond to the manufacturer or model name of the new device. In this case, the voice assistant server may store data adapter modules for each manufacturer or model name, and may store a plurality of data adapter modules. The hub device may request a data adapter module corresponding to the new device from the voice assistant server based on the manufacturer or model name information of the new device. In addition, even when there is no request from the hub device, the voice assistant server may transmit a data adapter module corresponding to the new device to the hub device based on the manufacturer or model name information of the new device obtained from the IoT server.

일 실시예에서, 기능 판단 모델 관리 모듈(1360)이 음성 비서 서버(2000)로부터 기능 판단 모델을 다운로드하여 메모리(1300)에 저장하기로 결정한 경우, 허브 디바이스(1000)는 음성 비서 서버(2000)에 기능 판단 모델을 전송해 줄 것을 요청하는 쿼리(query)를 전송하고, 음성 비서 서버(2000)로부터 기능 판단 모델을 수신하여 메모리(1300)에 저장할 수 있다. 이 때, 허브 디바이스는, 신규 디바이스의 제조사 또는 모델명 정보에 기초하여, 음성 비서 서버에 신규 디바이스에 대응하는 데이터 어댑터 모듈을 요청할 수 있다. 데이터 어댑터 모듈(미도시)은 허브 디바이스에 다운로드되어 저장된 기능 판단 모델의 출력 데이터를 신규 디바이스에서 처리 가능한 형태의 데이터로 변환한다.In one embodiment, when the function determination model management module 1360 determines to download the function determination model from the voice assistant server 2000 and store it in the memory 1300, the hub device 1000 is the voice assistant server 2000. A query requesting that the function determination model be transmitted may be transmitted, and the function determination model may be received from the voice assistant server 2000 and stored in the memory 1300. In this case, the hub device may request a data adapter module corresponding to the new device from the voice assistant server based on the manufacturer or model name information of the new device. The data adapter module (not shown) converts the output data of the function determination model downloaded and stored in the hub device into data in a form that can be processed by the new device.

다른 실시예에서, 기능 판단 모델 관리 모듈(1360)이 음성 비서 서버(2000)로부터 기능 판단 모델을 다운로드하지 않기로 결정한 경우, 허브 디바이스(1000)는 음성 비서 서버(2000)에 기 저장된 기능 판단 모델에 관한 액세스(access) 정보를 수신하고, 수신된 액세스 정보를 기능 판단 모델 데이터베이스(1362)에 저장할 수 있다. 액세스 정보는 각 기능 판단 모델이 저장된 음성 비서 서버(2000, 도 1 참조)의 식별 정보(예를 들어, 서버 id), 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 음성 비서 서버(2000) 내의 기능 판단 모델에 접근할 수 있는 API 정보(Application Programming Interface), 각 기능 판단 모델의 사용 언어 및 대응하는 디바이스의 식별 정보 중 적어도 하나를 포함할 수 있다. In another embodiment, when the function determination model management module 1360 decides not to download the function determination model from the voice assistant server 2000, the hub device 1000 uses the function determination model previously stored in the voice assistant server 2000. Access information related to may be received, and the received access information may be stored in the function determination model database 1362. The access information includes identification information (eg, server ID), location information, IP address information, MAC address, and voice information of the voice assistant server (see 2000, FIG. 1) in which each function determination model is stored. It may include at least one of API information (Application Programming Interface) for accessing the function determination model in the secretary server 2000, a language used for each function determination model, and identification information of a corresponding device.

일 실시예에서, 허브 디바이스(1000)는 사용자 계정에 신규 디바이스가 등록되는 경우, 기능 판단 모델 관리 모듈(1360)에 관한 데이터를 이용하여, 신규 디바이스에 대응하는 기능 판단 모델에 관한 정보(예를 들어, 용량 정보)를 음성 비서 서버(2000)로부터 수신하고, 수신된 기능 판단 모델에 관한 정보에 기초하여, 기능 판단 모델을 음성 비서 서버(2000)로부터 다운로드하여 메모리(1300) 내에 저장할 지 여부를 결정할 수 있다. 기능 판단 모델을 메모리(1300)에 저장하는 것으로 결정한 경우, 허브 디바이스(1000)는 신규 디바이스에 대응하는 기능 판단 모델을 음성 비서 서버(2000)로부터 다운로드하고, 메모리(1300)에 저장할 수 있다. 기능 판단 모델을 저장하지 않는 것으로 결정한 경우, 허브 디바이스(1000)는 신규 디바이스에 대응하는 기능 판단 모델에 관한 액세스 정보를 기능 판단 모델 데이터베이스(1362)에 저장할 수 있다. In one embodiment, when a new device is registered in a user account, the hub device 1000 uses data on the function determination model management module 1360 to provide information on a function determination model corresponding to the new device (for example, For example, capacity information) is received from the voice assistant server 2000, and based on the information on the received function determination model, whether to download the function determination model from the voice assistant server 2000 and store it in the memory 1300 is determined. You can decide. When it is determined to store the function determination model in the memory 1300, the hub device 1000 may download the function determination model corresponding to the new device from the voice assistant server 2000 and store it in the memory 1300. When it is determined not to store the function determination model, the hub device 1000 may store access information on the function determination model corresponding to the new device in the function determination model database 1362.

허브 디바이스(1000)는 자체의 기능을 판단하고, 판단된 기능에 따른 동작을 수행하기 위한 기능 판단 모델(1372) 및 복수의 디바이스(4000, 도 1 참조) 중 적어도 하나의 디바이스에 대응하는 기능 판단 모델(1374)을 자체적으로 저장하고 있을 수 있다. '동작 수행 디바이스에 대응하는 기능 판단 모델'은, 동작 수행 디바이스가 판단된 기능에 따른 동작을 수행하기 위한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용하는 모델을 의미한다. 일 실시예에서, 허브 디바이스(1000)의 메모리(1300)에 저장된 복수의 기능 판단 모델(1372, 1374)은 사용자 계정(user account)과 동일한 계정으로 로그인되고, 허브 디바이스(1000)와 네트워크를 통해 연결된 복수의 디바이스에 각각 대응할 수 있다. The hub device 1000 determines its own function and determines a function corresponding to at least one of a function determination model 1372 and a plurality of devices 4000 (refer to FIG. 1) for performing an operation according to the determined function It may be storing the model 1374 itself. The'function determination model corresponding to an operation performing device' refers to a model used by the operation performing device to obtain detailed operations for performing an operation according to the determined function and operation information regarding a relationship between the detailed operations. In one embodiment, the plurality of function determination models 1372 and 1374 stored in the memory 1300 of the hub device 1000 are logged in with the same account as the user account, and are logged in through the hub device 1000 and the network. Each may correspond to a plurality of connected devices.

예를 들어, 제1 기능 판단 모델(1372)은 제1 디바이스(4100, 도 1 참조)가 기능에 따른 동작을 수행하기 위한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용되는 모델일 수 있다. 일 실시예에서, 제1 기능 판단 모델(1372)은 허브 디바이스(1000) 자체의 기능에 따른 동작 정보를 획득하기 위하여 이용되는 모델일 수 있으나, 이에 한정되지 않는다. 마찬가지로, 제2 기능 판단 모델(1374)는 제2 디바이스(4200, 도 1 참조)가 기능에 따른 동작을 수행하기 위한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용되는 모델일 수 있다.For example, the first function determination model 1372 is used by the first device 4100 (refer to FIG. 1) to obtain detailed operations for performing an operation according to a function and operation information regarding a relationship between the detailed operations. It can be a model that becomes. In an embodiment, the first function determination model 1372 may be a model used to obtain operation information according to a function of the hub device 1000 itself, but is not limited thereto. Similarly, the second function determination model 1374 is a model used to obtain detailed operations for the second device 4200 (refer to FIG. 1) to perform an operation according to a function and operation information regarding a relationship between the detailed operations. Can be

제1 기능 판단 모델(1372) 및 제2 기능 판단 모델(1374) 각각은, 텍스트의 적어도 일부를 분석하고, 텍스트의 적어도 일부에 대한 분석 결과에 기초하여 결정된 동작 수행 디바이스가 수행할 동작에 관한 동작 정보를 획득하도록 구성된 제2 자연어 이해 모델(Natural Language Understanding)(1372a, 1374a)을 포함할 수 있다. 제1 기능 판단 모델(1372) 및 제2 기능 판단 모델(1374) 각각은, 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 생성하기 위하여 디바이스의 세부 동작에 관련된 동작 정보를 관리하는 액션 플랜 관리 모델(1372b, 1374b)을 포함할 수 있다. 액션 플랜 관리 모델(1372b, 1374b)은, 디바이스 별로 디바이스의 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 관리할 수 있다. 액션 플랜 관리 모델(1372b, 1374b)은, 텍스트의 적어도 일부에 관한 분석 결과에 기초하여, 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 플래닝(planning)할 수 있다.Each of the first function determination model 1372 and the second function determination model 1374 analyzes at least a part of the text and performs an operation determined based on the analysis result of the at least part of the text. A second natural language understanding model (1372a, 1374a) configured to obtain information may be included. Each of the first function determination model 1372 and the second function determination model 1374 is an action plan that manages operation information related to the detailed operation of the device in order to generate detailed operations to be performed by the device and an execution order of the detailed operations. Management models 1372b and 1374b may be included. The action plan management models 1372b and 1374b may manage detailed operations of a device for each device and operation information regarding a relationship between the detailed operations. The action plan management models 1372b and 1374b may plan detailed operations to be performed by the device and an execution order of the detailed operations based on an analysis result of at least a part of the text.

프로세서(1200)는 메모리(1300)에 저장된 동작 수행 디바이스에 대응하는 기능 판단 모델, 예를 들어 TV 기능 판단 모델(1374)의 제2 자연어 이해 모델(1374a)을 이용하여, 동작 수행 디바이스가 수행할 동작에 관한 동작 정보를 획득할 수 있다. 제2 자연어 이해 모델(1374a)은 특정 디바이스(예를 들어, TV)에 특화된 모델로서, 제1 자연어 이해 모델(1342)에 의해 결정된 동작 수행 디바이스에 해당되는 디바이스와 관련되며 텍스트에 대응하는 인텐트를 획득하도록 학습된 인공지능 모델일 수 있다. 또한, 제2 자연어 이해 모델(1374a)은 텍스트를 해석함으로써 사용자의 의도와 관련된 디바이스의 동작을 결정할 수 있도록 학습된 모델일 수 있다. 동작은, 디바이스에서 특정 기능을 실행함으로서, 디바이스가 수행하는 적어도 하나의 액션을 의미할 수 있다. 동작은 디바이스에서 애플리케이션을 실행함으로써, 디바이스가 수행하는 적어도 하나의 액션을 나타낼 수 있다.The processor 1200 uses a function determination model corresponding to the operation performing device stored in the memory 1300, for example, the second natural language understanding model 1374a of the TV function determination model 1374, to be performed by the operation performing device. It is possible to obtain motion information about the motion. The second natural language understanding model 1374a is a model specialized for a specific device (eg, TV), and is associated with a device corresponding to the device performing the operation determined by the first natural language understanding model 1342 and corresponds to an intent corresponding to the text. It may be an artificial intelligence model that has been trained to obtain. In addition, the second natural language understanding model 1374a may be a model trained to determine an operation of a device related to a user's intention by analyzing text. An operation may mean at least one action performed by the device by executing a specific function in the device. The operation may represent at least one action performed by the device by executing an application on the device.

일 실시예에서, 프로세서(1200)는 결정된 동작 수행 디바이스(예를 들어, TV)에 대응되는 TV 기능 판단 모델(1374)의 제2 자연어 이해 모델(1374a)을 이용하여 텍스트를 분석할 수 있다. 프로세서(1200)는 제2 자연어 이해 모델(1374a)을 이용하여 텍스트를 형태소, 단어, 또는 구 단위로 파싱하고, 문법적 및 의미적 분석을 통해 파싱된 형태소, 단어, 또는 구의 의미를 파악하고, 파악된 의미를 기 정의된 단어에 매칭시켜 인텐트 및 파라미터를 결정할 수 있다. 여기서,'파라미터'는 인텐트와 관련된 동작 수행 디바이스의 세부 동작 들을 결정하기 위한 변수(variable) 정보를 의미한다. 예를 들어, 기능 판단 모델(1374)에 전송된 텍스트가 "TV에서 영화 어벤져스 틀어줘~"인 경우, 인텐트는 '컨텐트 재생(play)'이고, 파라미터는 재생할 컨텐트에 관한 정보인 '어벤져스 영화'일 수 있다. In an embodiment, the processor 1200 may analyze the text by using the second natural language understanding model 1374a of the TV function determination model 1374 corresponding to the determined operation performing device (eg, TV). The processor 1200 parses the text into morphemes, words, or phrases using the second natural language understanding model 1374a, and grasps and grasps the meaning of the parsed morphemes, words, or phrases through grammatical and semantic analysis. An intent and a parameter may be determined by matching the defined meaning to a predefined word. Here, the'parameter' means variable information for determining detailed operations of the device performing the operation related to the intent. For example, if the text transmitted to the function determination model 1374 is "Play Movie Avengers on TV~", the intent is'content play', and the parameter is'Avenger', which is information about the content to be played. It could be a movie.

프로세서(1200)는 TV 기능 판단 모델(1374)의 액션 플랜 관리 모델(1374b)을 이용하여, 인텐트 및 파라미터에 관련된 적어도 하나의 세부 동작에 대한 동작 정보를 획득할 수 있다. 액션 플랜 관리 모델(1374b)은, 디바이스 별로 디바이스의 세부 동작들 및 세부 동작들 간의 관계에 관한 정보를 관리할 수 있다. 프로세서(1200)는 액션 플랜 관리 모델(1374b)을 이용함으로써, 인텐트 및 파라미터에 기초하여, 동작 수행 디바이스(예를 들어, TV)가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 플래닝(planning)하고, 이를 통해 동작 정보를 획득할 수 있다. 동작 정보는, 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서에 관련된 정보일 수 있다. 동작 정보는 디바이스가 수행할 세부 동작들, 각 세부 동작과 다른 세부 동작과의 연관 관계 및 실행 순서에 관련된 정보를 포함할 수 있다. 동작 정보는 예를 들어, 특정 동작의 수행을 위하여 동작 수행 디바이스가 실행해야 할 기능들, 기능들의 실행 순서, 기능들을 실행하기 위하여 필요한 입력 값 및 기능들의 실행 결과로서 출력되는 출력 값을 포함할 수 있으나, 이에 한정되지 않는다.The processor 1200 may obtain operation information on at least one detailed operation related to an intent and a parameter by using the action plan management model 1374b of the TV function determination model 1374. The action plan management model 1374b may manage detailed operations of a device for each device and information about a relationship between detailed operations. The processor 1200 uses the action plan management model 1374b to plan detailed operations to be performed by the operation performing device (eg, TV) and the execution order of the detailed operations based on intents and parameters. ), and through this, operation information can be obtained. The operation information may be information related to detailed operations to be performed by the device and an execution order of the detailed operations. The operation information may include detailed operations to be performed by the device, a relationship between each detailed operation and other detailed operations, and information related to an execution order. The operation information may include, for example, functions to be executed by the operation performing device in order to perform a specific operation, an execution order of functions, an input value required to execute the functions, and an output value output as a result of execution of the functions. However, it is not limited thereto.

프로세서(1200)는 동작 정보에 기초하여 동작 수행 디바이스를 제어할 수 있는 제어 명령을 생성할 수 있다. 제어 명령은, 동작 수행 디바이스가 동작 정보 내에 포함된 세부 동작들을 수행할 수 있도록, 동작 수행 디바이스가 판독하고, 실행할 수 있는 명령어를 의미한다. 이 경우, 프로세서(1200)는 통신 인터페이스(1400)를 통해 IoT 서버(3000)로부터 동작 정보를 제어 명령으로 변환하기 위한 제어 명령 변환 모듈을 수신하여야 한다. 일 실시예에서, 프로세서(1200)는 통신 인터페이스(1400)를 제어함으로써, IoT 서버(3000)에 동작 수행 디바이스에 대한 동작 정보를 제어 명령으로 변환하기 위한 제어 명령 변환 모듈을 전송해줄 것을 요청하는 쿼리(query)를 전송하고, IoT 서버(3000)로부터 제어 명령 변환 모듈을 수신하여 메모리(1300)에 저장할 수 있다. 그러나, 이에 한정되는 것은 아니고, 동작 수행 디바이스에 대응하는 제어 명령 변환 모듈이 메모리(1300)에 기 저장되어 있을 수도 있다. The processor 1200 may generate a control command capable of controlling an operation performing device based on the operation information. The control command means a command that can be read and executed by the operation performing device so that the operation performing device can perform detailed operations included in the operation information. In this case, the processor 1200 must receive a control command conversion module for converting operation information into a control command from the IoT server 3000 through the communication interface 1400. In one embodiment, the processor 1200 controls the communication interface 1400 to request the IoT server 3000 to transmit a control command conversion module for converting operation information on an operation performing device into a control command. A (query) may be transmitted, and a control command conversion module may be received from the IoT server 3000 and stored in the memory 1300. However, the present invention is not limited thereto, and a control command conversion module corresponding to an operation performing device may be previously stored in the memory 1300.

프로세서(1200)는 생성된 제어 명령을 동작 수행 디바이스에 전송하도록 통신 인터페이스(1400)를 제어할 수 있다. The processor 1200 may control the communication interface 1400 to transmit the generated control command to an operation performing device.

통신 인터페이스(1400)는 음성 비서 서버(2000), IoT 서버(3000), 및 복수의 디바이스(4000)와 데이터 통신을 수행할 수 있다. 통신 인터페이스(1400)는 예를 들어, 유선 랜, 무선 랜(Wireless LAN), 와이파이(Wi-Fi), 블루투스(Bluetooth), 지그비(zigbee), WFD(Wi-Fi Direct), 적외선 통신(IrDA, infrared Data Association), BLE (Bluetooth Low Energy), NFC(Near Field Communication), 와이브로(Wireless Broadband Internet, Wibro), 와이맥스(World Interoperability for Microwave Access, WiMAX), SWAP(Shared Wireless Access Protocol), 와이기그(Wireless Gigabit Allicance, WiGig) 및 RF 통신을 포함하는 데이터 통신 방식 중 적어도 하나를 이용하여 음성 비서 서버(2000), IoT 서버(3000), 및 복수의 디바이스(4000)와 데이터 통신을 수행할 수 있다. The communication interface 1400 may perform data communication with the voice assistant server 2000, the IoT server 3000, and a plurality of devices 4000. The communication interface 1400 is, for example, wired LAN, wireless LAN, Wi-Fi, Bluetooth, zigbee, Wi-Fi Direct (WFD), infrared communication (IrDA, infrared Data Association), BLE (Bluetooth Low Energy), NFC (Near Field Communication), Wibro (Wireless Broadband Internet, Wibro), WiMAX (World Interoperability for Microwave Access, WiMAX), SWAP (Shared Wireless Access Protocol), Wiigg Data communication with the voice assistant server 2000, the IoT server 3000, and a plurality of devices 4000 may be performed using at least one of a data communication method including (Wireless Gigabit Allicance, WiGig) and RF communication. .

일 실시예에서, 프로세서(1200)는 통신 인터페이스(1400)를 통해, IoT 서버(3000, 도 1 참조)에 허브 디바이스(1000)의 사용자 계정과 동일한 계정으로 로그인되고, 기존 디바이스가 아닌 새롭게 등록된 신규 디바이스(4300, 도 1 참조)에 관한 디바이스 정보를 수신할 수 있다. 프로세서(1200)는 통신 인터페이스(1400)를 이용하여 신규 디바이스(4300)에 관한 디바이스 정보를 IoT 서버(3000)로부터 수신할 수 있지만, 이에 한정되는 것은 아니다. IoT 서버(3000)는 사용자 계정에 새롭게 등록된 신규 디바이스(4300)에 관한 디바이스 정보 및 사용자 계정 정보를 음성 비서 서버(2000, 도 1 참조)에 전송하고, 허브 디바이스(1000)의 프로세서(1200)는 음성 비서 서버(2000)로부터 신규 디바이스(4300)의 디바이스 정보를 수신하도록 통신 인터페이스(1400)를 제어할 수 있다. In one embodiment, the processor 1200 is logged in to the IoT server 3000 (see FIG. 1) with the same user account as the user account of the hub device 1000 through the communication interface 1400, and is newly registered instead of the existing device. Device information about the new device 4300 (refer to FIG. 1) may be received. The processor 1200 may receive device information about the new device 4300 from the IoT server 3000 using the communication interface 1400, but is not limited thereto. The IoT server 3000 transmits device information and user account information about the new device 4300 newly registered in the user account to the voice assistant server 2000 (refer to FIG. 1), and the processor 1200 of the hub device 1000 May control the communication interface 1400 to receive device information of the new device 4300 from the voice assistant server 2000.

프로세서(1200)는 통신 인터페이스(1400)를 통해 음성 비서 서버(2000)에 메모리(1300)에 저장된 디바이스 판단 모델(1340)의 업데이트를 요청하고, 음성 비서 서버(2000)로부터 업데이트된 디바이스 판단 모델(1340)을 수신할 수 있다. IoT 서버(3000)의 사용자 계정에 신규 디바이스(4300)가 새롭게 등록되는 경우, 음성 비서 서버(2000)는 디바이스 판단 모델(2330, 도 1 참조) 및 기능 판단 모델(2368, 도 1 참조)을 업데이트할 수 있다. 이 경우, 프로세서(1200)는 음성 비서 서버(2000)에 대하여, 신규 디바이스(4300)에 관한 디바이스 판단을 위한 업데이트된 디바이스 판단 모델(2330)의 존재 여부를 질의하는 쿼리(query)를 전송하고, 업데이트된 디바이스 판단 모델(2330)이 있다면 허브 디바이스(1000)로 전송해줄 것을 요청하는 신호를 전송하도록 통신 인터페이스(1400)를 제어할 수 있다. The processor 1200 requests the voice assistant server 2000 to update the device determination model 1340 stored in the memory 1300 through the communication interface 1400, and the updated device determination model ( 1340). When a new device 4300 is newly registered in the user account of the IoT server 3000, the voice assistant server 2000 updates the device determination model 2330 (see FIG. 1) and the function determination model 2368 (see FIG. 1). can do. In this case, the processor 1200 transmits a query to the voice assistant server 2000 for inquiring about the existence of the updated device determination model 2330 for device determination regarding the new device 4300, and If there is an updated device determination model 2330, the communication interface 1400 may be controlled to transmit a signal requesting transmission to the hub device 1000.

프로세서(1200)는 통신 인터페이스(1400)를 통해, 음성 비서 서버(2000)로부터 신규 디바이스(4300)에 관한 텍스트를 분석하고, 신규 디바이스(4300)를 동작 수행 디바이스로 결정할 수 있도록 업데이트된 디바이스 판단 모델(2330)을 수신하여, 메모리(1300)에 저장할 수 있다. The processor 1200 analyzes the text on the new device 4300 from the voice assistant server 2000 through the communication interface 1400 and determines the new device 4300 as an operation performing device. 2330 may be received and stored in the memory 1300.

프로세서(1200)는 통신 인터페이스(1400)를 통해, 음성 비서 서버(2000)에 신규 디바이스(4300)에 대응하는 기능 판단 모델의 정보를 요청하는 쿼리(query)를 전송할 수 있다. 신규 디바이스(4300)에 대응하는 기능 판단 모델의 정보는, 예를 들어 신규 디바이스(4300)가 수행하는 세부 동작들, 각 세부 동작들과 다른 세부 동작들과의 연관 관계, 및 세부 동작들의 실행 순서에 관련된 정보를 획득하기 위한 기능 판단 모델의 용량 정보 및 액세스 정보 중 적어도 하나를 포함할 수 있다. 프로세서(1200)는 기능 판단 모델 관리 모듈(1360)에 의한 신규 디바이스(4300)에 대응하는 기능 판단 모델을 저장할 지 여부에 관한 결정에 기초하여, 기능 판단 모델을 음성 비서 서버(2000)로부터 다운로드하거나, 또는 기능 판단 모델에 관한 액세스 정보만을 수신하도록 통신 인터페이스(1400)를 제어할 수 있다. The processor 1200 may transmit a query requesting information on a function determination model corresponding to the new device 4300 to the voice assistant server 2000 through the communication interface 1400. The information of the function determination model corresponding to the new device 4300 includes, for example, detailed operations performed by the new device 4300, a relationship between each detailed operation and other detailed operations, and the execution order of the detailed operations. It may include at least one of capacity information and access information of a function determination model for obtaining information related to. The processor 1200 downloads the function determination model from the voice assistant server 2000 based on the determination of whether to store the function determination model corresponding to the new device 4300 by the function determination model management module 1360 or Or, the communication interface 1400 may be controlled to receive only access information for the function determination model.

도 1 및 도 2에 도시된 실시예에서 허브 디바이스(1000)는, 허브 디바이스(1000)의 사용자와 동일한 사용자의 계정 정보로 로그인되고, 사용자의 계정에 신규 디바이스(4300)가 등록된 경우, 또는 기존 디바이스에 신규 기능이 추가된 경우 등에 따라 업데이트된 디바이스 판단 모델(2330, 도 1 참조)을 음성 비서 서버(2000)로부터 다운로드하여 메모리(1300)에 저장하고, 신규 디바이스(4300)에 대응하는 기능 판단 모델 또는 기존 디바이스에 대응하는 업데이트된 기능 판단 모델에 대해서는 허브 디바이스(1000) 내부의 리소스 상태 정보에 기초하여 다운로드 및 메모리(1300)에 저장 여부를 결정할 수 있다. 일반적으로, 허브 디바이스(1000)를 통해 동작 수행 디바이스를 결정하고, 동작 수행 디바이스에 관한 동작 정보를 획득하는 경우, 음성 비서 서버(2000)를 통해 상기 과정들을 수행하는 경우 보다 처리 속도가 빠르고, 음성 비서 서버(2000)에 접속하기 위하여 소비되는 네트워크 사용 비용을 절감할 수 있는 효과가 있다. 그러나, 허브 디바이스(1000)의 자체 메모리(1300)에 업데이트된 기능 판단 모델을 모두 저장하기에는 리소스 문제가 발생할 수 있다. 따라서, 본 개시의 일 실시예는 업데이트된 디바이스 판단 모델은 음성 비서 서버(2000)로부터 다운로드하여 메모리(1300)에 저장하되, 신규 디바이스(4300)에 대응하는 기능 판단 모델 및 업데이트된 기능 판단 모델에 대해서는 허브 디바이스(1000) 자체의 리소스를 검토한 이후 다운로드 여부를 결정하는바, 리소스 문제도 해결 가능하고, 음성 명령에 관한 처리 속도도 향상시킬 수 있다. 1 and 2, the hub device 1000 is logged in with the same user account information as the user of the hub device 1000, and a new device 4300 is registered in the user's account, or A function corresponding to the new device 4300 by downloading the updated device determination model (2330, see FIG. 1) from the voice assistant server 2000 and storing it in the memory 1300 according to the case where a new function is added to the existing device. For the determination model or the updated function determination model corresponding to the existing device, whether to download and store in the memory 1300 may be determined based on resource state information inside the hub device 1000. In general, when an operation performing device is determined through the hub device 1000 and operation information on the operation performing device is obtained, processing speed is faster than when the above processes are performed through the voice assistant server 2000, and voice There is an effect of reducing the cost of using the network consumed to access the secretary server 2000. However, a resource problem may occur in storing all of the updated function determination models in the own memory 1300 of the hub device 1000. Accordingly, in an embodiment of the present disclosure, the updated device determination model is downloaded from the voice assistant server 2000 and stored in the memory 1300, but the updated function determination model and the function determination model corresponding to the new device 4300 are used. Regarding, since the resource of the hub device 1000 itself is reviewed and whether or not to be downloaded is determined, a resource problem can be solved and a processing speed for a voice command can be improved.

도 3은 본 개시의 일 실시예에 따른 음성 비서 서버(2000)의 구성 요소를 도시한 블록도이다.3 is a block diagram illustrating components of a voice assistant server 2000 according to an embodiment of the present disclosure.

음성 비서 서버(2000)는 허브 디바이스(1000)로부터 사용자의 음성 입력이 변환된 텍스트를 수신하고, 수신된 텍스트에 기초하여 동작 수행 디바이스를 결정하고, 동작 수행 디바이스에 대응하는 기능 판단 모델을 이용하여 동작 정보를 획득하는 서버이다. The voice assistant server 2000 receives the text converted from the user's voice input from the hub device 1000, determines an operation performing device based on the received text, and uses a function determination model corresponding to the operation performing device. It is a server that obtains operation information.

도 3을 참조하면, 음성 비서 서버(2000)는 적어도 통신 인터페이스(2100), 프로세서(2200), 및 메모리(2300)를 포함할 수 있다. Referring to FIG. 3, the voice assistant server 2000 may include at least a communication interface 2100, a processor 2200, and a memory 2300.

음성 비서 서버(2000)의 통신 인터페이스(2100)는 IoT 서버(3000, 도 1 참조)와 데이터 통신을 수행함으로써, 복수의 디바이스(4000, 도 1 참조) 각각의 식별 정보(예를 들어, 디바이스 id 정보), 복수의 디바이스(4000) 각각의 디바이스 타입, 복수의 디바이스(4000) 각각의 기능 수행 능력(capability), 위치 정보, 및 상태 정보 중 적어도 하나를 포함하는 디바이스 정보를 IoT 서버(3000)로부터 수신할 수 있다. 일 실시예에서, 음성 비서 서버(2000)는 통신 인터페이스(2100)를 통해 신규 디바이스(4300)가 등록된 사용자 계정 정보 및 신규 디바이스(4300)에 관한 디바이스 정보를 IoT 서버(3000)로부터 수신할 수 있다. 음성 비서 서버(2000)는 통신 인터페이스(2100)를 통해 허브 디바이스(1000)로부터 사용자 계정 정보를 수신하고, 수신된 사용자 계정 정보에 따라 등록된 복수의 디바이스(4000)에 관한 디바이스 정보를 허브 디바이스(1000)에 전송할 수 있다. 일 실시예에서, 음성 비서 서버(2000)는 통신 인터페이스(2100)를 통해, 업데이트된 디바이스 판단 모델(2330)을 허브 디바이스(1000)에 전송할 수 있다. 일 실시예에서, 음성 비서 서버(2000)는 통신 인터페이스(2100)를 통해, 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)의 정보를 허브 디바이스(1000)에 전송하거나, 또는 기능 판단 모델(2368) 자체를 허브 디바이스(1000)에 전송할 수 있다. The communication interface 2100 of the voice assistant server 2000 performs data communication with the IoT server 3000 (refer to FIG. 1), and thus identification information (e.g., device ID) of each of the plurality of devices 4000 (refer to FIG. 1) Information), device type of each of the plurality of devices 4000, capability of each of the plurality of devices 4000, location information, and device information including at least one of status information from the IoT server 3000 You can receive it. In one embodiment, the voice assistant server 2000 may receive user account information registered with the new device 4300 and device information about the new device 4300 from the IoT server 3000 through the communication interface 2100. have. The voice assistant server 2000 receives user account information from the hub device 1000 through the communication interface 2100, and transmits device information on the plurality of devices 4000 registered according to the received user account information to the hub device ( 1000). In an embodiment, the voice assistant server 2000 may transmit the updated device determination model 2330 to the hub device 1000 through the communication interface 2100. In one embodiment, the voice assistant server 2000 transmits information of the function determination model 2368 corresponding to the new device 4300 to the hub device 1000 through the communication interface 2100, or the function determination model (2368) It may transmit itself to the hub device 1000.

다른 실시예에서, 허브 디바이스(1000)의 기능 판단 모델 관리 모듈(1360, 도 2 참조)에 의해 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 허브 디바이스(1000)가 아닌, 복수의 디바이스(4000) 중 어느 하나의 디바이스에 전송하기로 결정된 경우, 음성 비서 서버(2000)는 통신 인터페이스(2100)를 통해 허브 디바이스(1000)로부터 결정된 디바이스에 관한 식별 정보 및 기능 판단 모델을 전송하라는 신호를 포함하는 쿼리(query)를 수신하고, 수신된 쿼리에 응답하여, 결정된 디바이스에 기능 판단 모델(2368)을 전송할 수 있다. In another embodiment, the function determination model 2368 corresponding to the new device 4300 by the function determination model management module 1360 (refer to FIG. 2) of the hub device 1000 is When it is determined to transmit to any one of the devices 4000, the voice assistant server 2000 signals to transmit the device identification information and the function determination model determined from the hub device 1000 through the communication interface 2100. A query including a may be received, and a function determination model 2368 may be transmitted to the determined device in response to the received query.

음성 비서 서버(2000)의 프로세서(2200) 및 메모리(2300)는 허브 디바이스(1000, 도 2 참조)의 프로세서(1200, 도 2 참조) 및 메모리(1300, 도 2 참조)와 동일하거나 유사한 기능을 수행할 수 있다. 따라서, 음성 비서 서버(2000)의 프로세서(2200) 및 메모리(2300)에 관하여 허브 디바이스(1000)의 프로세서(1200) 및 메모리(1300)에서 설명하였던 것과 중복되는 설명은 생략한다.The processor 2200 and the memory 2300 of the voice assistant server 2000 have the same or similar functions as the processor 1200 (see FIG. 2) and the memory 1300 (see FIG. 2) of the hub device 1000 (see FIG. 2). You can do it. Accordingly, descriptions of the processor 2200 and the memory 2300 of the voice assistant server 2000 that overlap with those described in the processor 1200 and the memory 1300 of the hub device 1000 will be omitted.

음성 비서 서버(2000)의 메모리(2300)에는 ASR 모듈(2310)에 관한 데이터, NLG 모듈(2320)에 관한 데이터, 디바이스 판단 모델(2330)에 관한 데이터, 음성 비서 모델 업데이트 모듈(2340)에 관한 데이터, 온 디바이스 모델 업데이트 모듈(2350)에 관한 데이터, 및 복수의 기능 판단 모델(2360) 각각에 대응하는 데이터가 저장되어 있을 수 있다. 음성 비서 서버(2000)의 메모리(2300)는 허브 디바이스(1000)의 메모리(1300)에 저장되어 있는 복수의 기능 판단 모델(1370, 도 2 참조)에 관한 데이터와는 달리, 서로 다른 복수의 사용자 계정에 관한 복수의 디바이스에 대응하는 복수의 기능 판단 모델(2360)을 저장할 수 있다. 또한, 음성 비서 서버(2000)의 메모리(2300)에는 허브 디바이스(1000)의 메모리(1300)에 저장된 복수의 기능 판단 모델(1370) 보다 많은 타입의 디바이스에 관한 복수의 기능 판단 모델(2360)이 저장되어 있을 수 있다. 음성 비서 서버(2000)의 메모리(2300)에 저장된 복수의 기능 판단 모델(2360)의 전체 용량은 허브 디바이스(1000)의 메모리(1300)에 저장된 복수의 기능 판단 모델(1370)의 용량에 비해 클 수 있다. The memory 2300 of the voice assistant server 2000 includes data on the ASR module 2310, data on the NLG module 2320, data on the device determination model 2330, and data on the voice assistant model update module 2340. Data, data on the on-device model update module 2350, and data corresponding to each of the plurality of function determination models 2360 may be stored. The memory 2300 of the voice assistant server 2000 is different from the data on the plurality of function determination models 1370 (refer to FIG. 2) stored in the memory 1300 of the hub device 1000. A plurality of function determination models 2360 corresponding to a plurality of devices related to the account may be stored. In addition, the memory 2300 of the voice assistant server 2000 includes a plurality of function determination models 2360 for more types of devices than the plurality of function determination models 1370 stored in the memory 1300 of the hub device 1000. May be stored. The total capacity of the plurality of function determination models 2360 stored in the memory 2300 of the voice assistant server 2000 is larger than the capacity of the plurality of function determination models 1370 stored in the memory 1300 of the hub device 1000. I can.

허브 디바이스(1000)로부터 텍스트의 적어도 일부를 수신하는 경우, 음성 비서 서버(2000)의 통신 인터페이스(2100)는 수신된 텍스트의 적어도 일부를 프로세서(2200)에 전달하고, 프로세서(2200)는 메모리(2300)에 저장되어 있는 제1 자연어 이해 모델(2332)를 이용하여 텍스트의 적어도 일부를 분석할 수 있다. 프로세서(2200)는 메모리(2300)에 저장되어 있는 디바이스 판단 모델(2330)을 이용하여, 분석 결과에 기초하여 텍스트의 적어도 일부와 관련된 동작 수행 디바이스를 결정할 수 있다. 프로세서(2200)는 메모리(2300)에 저장된 복수의 기능 판단 모델 중 동작 수행 디바이스에 대응하는 기능 판단 모델을 선택하고, 선택된 기능 판단 모델을 이용하여 동작 수행 디바이스가 기능을 수행하기 위한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득할 수 있다. When receiving at least a portion of the text from the hub device 1000, the communication interface 2100 of the voice assistant server 2000 delivers at least a portion of the received text to the processor 2200, and the processor 2200 uses a memory ( At least a part of the text may be analyzed using the first natural language understanding model 2332 stored in the 2300. The processor 2200 may determine a device for performing an operation related to at least a portion of the text based on the analysis result using the device determination model 2330 stored in the memory 2300. The processor 2200 selects a function determination model corresponding to the operation performing device from among a plurality of function determination models stored in the memory 2300, and uses the selected function determination model to perform detailed operations for the operation performing device to perform a function, and It is possible to obtain operation information about a relationship between detailed operations.

예를 들어, 동작 수행 디바이스가 에어컨인 제1 디바이스(4100)로 결정된 경우, 프로세서(2200)는 에어컨에 대응하는 기능 판단 모델(2362)의 제2 자연어 이해 모델(2362a)을 이용하여 텍스트의 적어도 일부를 분석하고, 액션 플랜 관리 모델(2362b)을 이용하여 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 플래닝(planning)함으로써, 동작 정보를 획득할 수 있다. For example, when it is determined that the operation performing device is the first device 4100 that is an air conditioner, the processor 2200 uses the second natural language understanding model 2362a of the function determination model 2362 corresponding to the air conditioner. Operation information may be obtained by analyzing a part and planning detailed operations to be performed by the device and an execution order of the detailed operations using the action plan management model 2362b.

예를 들어, 음성 비서 서버(2000)는 허브 디바이스(1000)로부터 '온도 1도 올려줘'라는 텍스트를 수신한 경우, 디바이스 판단 모델(2330)을 통해 에어컨을 동작 수행 디바이스로서 결정한다. 이후, 음성 비서 서버(2000)는 복수의 기능 판단 모델(2360) 중 에어컨에 대응하는 기능 판단 모델(2362)을 선택하고, 선택된 기능 판단 모델(2362)의 제2 자연어 이해 모델(2362a)에 관한 데이터를 이용하여 텍스트를 분석하고, 액션 플랜 관리 모델(2362b)에 관한 데이터를 이용하여, 텍스트 분석 결과에 기초하여 온도 제어 동작을 수행하기 위한 동작 정보를 획득할 수 있다. For example, when the voice assistant server 2000 receives the text'Raise the temperature by 1 degree' from the hub device 1000, the voice assistant server 2000 determines the air conditioner as an operation performing device through the device determination model 2330. Thereafter, the voice assistant server 2000 selects a function determination model 2362 corresponding to the air conditioner from among the plurality of function determination models 2360, and relates to a second natural language understanding model 2362a of the selected function determination model 2362. The text may be analyzed using the data, and operation information for performing the temperature control operation may be obtained based on the text analysis result using the data on the action plan management model 2362b.

예를 들어, 음성 비서 서버(2000)는 허브 디바이스(1000)로부터 '채널 변경해줘'라는 텍스트를 수신한 경우, 디바이스 판단 모델(2330)을 통해 TV를 동작 수행 디바이스로 결정한다. 이후, 음성 비서 서버(2000)는 복수의 기능 판단 모델(2360) 중 TV에 대응하는 기능 판단 모델(2364)을 선택하고, 선택된 기능 판단 모델(2364)의 제2 자연어 이해 모델(2364a)에 관한 데이터를 이용하여 텍스트를 분석하고, 액션 플랜 관리 모델(2364b)에 관한 데이터를 이용하여, 텍스트 분석 결과에 기초하여 채널 변경 동작을 수행하기 위한 동작 정보를 획득할 수 있다. For example, when receiving the text'change channel' from the hub device 1000, the voice assistant server 2000 determines the TV as an operation performing device through the device determination model 2330. Thereafter, the voice assistant server 2000 selects a function determination model 2364 corresponding to the TV from among the plurality of function determination models 2360, and relates to a second natural language understanding model 2364a of the selected function determination model 2364. The text may be analyzed using data, and operation information for performing a channel change operation may be obtained based on a result of the text analysis, using data related to the action plan management model 2364b.

음성 비서 서버(2000)는 메모리(2300)에 저장된 음성 비서 모델 업데이트 모듈(2340)을 이용하여, 음성 비서 모델을 업데이트할 수 있다. IoT 서버(3000)의 사용자 계정에 신규 디바이스(4300, 도 1 참조)가 새롭게 등록되는 경우 또는 기존 디바이스에 신규 기능이 추가되는 경우, 음성 비서 서버(2000)는 통신 인터페이스(2100)를 통해 사용자 계정 및 사용자 계정에 등록된 신규 디바이스(4300)의 디바이스 정보를 IoT 서버(3000)로부터 수신할 수 있다. 음성 비서 서버(2000)는 음성 비서 모델 업데이트 모듈(2340)을 이용하여 디바이스 판단 모델(2330) 및 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 업데이트할 수 있다. The voice assistant server 2000 may update the voice assistant model by using the voice assistant model update module 2340 stored in the memory 2300. When a new device 4300 (refer to FIG. 1) is newly registered in the user account of the IoT server 3000 or a new function is added to an existing device, the voice assistant server 2000 uses the user account through the communication interface 2100. And device information of the new device 4300 registered in the user account may be received from the IoT server 3000. The voice assistant server 2000 may update the device determination model 2330 and the function determination model 2368 corresponding to the new device 4300 using the voice assistant model update module 2340.

예를 들어, 제2 디바이스(4200, 도 1 참조)의 기능이 추가되거나, 변경되는 경우와 같이, 제2 디바이스(4200)에 대응하는 기능 판단 모델(2364)이 업데이트되는 경우, 음성 비서 모델 업데이트 모듈(2340)은 디바이스 판단 모델(2330)이 업데이트된 기능을 해석함으로써, 업데이트된 기능과 관련된 동작 수행 디바이스로서 제2 디바이스(4200)를 결정할 수 있도록 학습 등을 통해 디바이스 판단 모델(2330)을 새로운 모델로 업데이트할 수 있다. 일 실시예에서, 음성 비서 모델 업데이트 모듈(2340)은 디바이스 판단 모델(2330)의 제1 자연어 이해 모델(2332)이 새로 업데이트된 기능에 관련된 텍스트를 해석하도록 학습 등을 통해 제1 자연어 이해 모델(2332)을 새로운 모델로 업데이트할 수 있다. For example, when the function determination model 2362 corresponding to the second device 4200 is updated, such as when the function of the second device 4200 (refer to FIG. 1) is added or changed, the voice assistant model is updated. The module 2340 creates a new device determination model 2330 through learning so that the device determination model 2330 analyzes the updated function to determine the second device 4200 as a device performing an operation related to the updated function. You can update the model. In one embodiment, the voice assistant model update module 2340 includes a first natural language understanding model through learning so that the first natural language understanding model 2332 of the device determination model 2330 interprets text related to the newly updated function. 2332) can be updated with new models.

예를 들어, IoT 서버(3000)의 사용자 계정에 신규 디바이스(4300)가 등록되는 경우, 음성 비서 모델 업데이트 모듈(2340)은 IoT 서버(3000)로부터 신규 디바이스(4300)의 식별 정보 및 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 수신하고, 수신된 기능 판단 모델(2368)을 메모리(2300) 내의 기존 기능 판단 모델(2362, 2364, 2366)에 추가하여 저장할 수 있다. 음성 비서 모델 업데이트 모듈(2340)은 디바이스 판단 모델(2330)이 텍스트로부터 인텐트를 해석하고, 해석 결과 인텐트와 관련된 동작 수행 디바이스로서 신규 디바이스(4300)를 결정할 수 있도록 학습 등을 통해 디바이스 판단 모델(2330)을 새로운 모델로 업데이트할 수 있다. 일 실시예에서, 음성 비서 모델 업데이트 모듈(2340)은 디바이스 판단 모델(2330)의 제1 자연어 이해 모델(2332)이 신규 디바이스(4300)와 관련된 텍스트를 해석하도록 학습 등을 통해 제1 자연어 이해 모델(2332)을 새로운 모델로 업데이트할 수 있다. For example, when a new device 4300 is registered in the user account of the IoT server 3000, the voice assistant model update module 2340 may provide identification information of the new device 4300 and the new device ( A function determination model 2368 corresponding to 4300 may be received, and the received function determination model 2368 may be added to and stored in the existing function determination models 2362, 2364, 2366 in the memory 2300. The voice assistant model update module 2340 is a device determination model through learning so that the device determination model 2330 analyzes the intent from the text and determines a new device 4300 as a device performing an operation related to the intent as a result of the analysis. (2330) can be updated with a new model. In one embodiment, the voice assistant model update module 2340 is a first natural language understanding model through learning so that the first natural language understanding model 2332 of the device determination model 2330 interprets text related to the new device 4300. (2332) can be updated with new models.

음성 비서 서버(2000)는 온 디바이스 모델 업데이트 모듈(2350)을 이용하여, 사용자 계정 별로 음성 비서 모델을 학습시키고, 학습을 통해 업데이트된 음성 비서 모델 중 적어도 일부를 허브 디바이스(1000, 도 2 참조)에 전송할 지 여부를 결정할 수 있다. 다른 실시예에서, 음성 비서 서버(2000)는 온 디바이스 모델 업데이트 모듈(2350)을 이용하여, 업데이트된 음성 비서 모델 중 적어도 일부를 복수의 디바이스(4000) 중 적어도 하나의 디바이스로 전송하도록 결정할 수 있다. The voice assistant server 2000 trains a voice assistant model for each user account using the on-device model update module 2350, and uses at least some of the updated voice assistant models through the learning to a hub device 1000 (refer to FIG. 2). You can decide whether to send it to or not. In another embodiment, the voice assistant server 2000 may determine to transmit at least some of the updated voice assistant models to at least one of the plurality of devices 4000 using the on-device model update module 2350. .

온 디바이스 모델 업데이트 모듈(2350)은 음성 비서 모델의 구성에 관한 정보를 각 사용자 계정 별로 저장하는 온 디바이스 모델 정보 데이터베이스(2352)를 포함할 수 있다. 온 디바이스 모델 정보 데이터베이스(2352)는 예를 들어, 사용자 계정 정보, 사용자 계정에 연관되어 등록된 복수의 디바이스에 대한 식별 정보, 복수의 디바이스 각각에 대응하는 기능 판단 모델의 식별 정보, 기능 판단 모델의 버전(version) 정보, 디바이스 판단 모델의 버전 정보, 및 디바이스 판단 모델에 의해 동작 수행 디바이스로 판단될 수 있는 디바이스 종류에 관한 정보 중 적어도 하나를 저장할 수 있다. The on-device model update module 2350 may include an on-device model information database 2352 for storing information on the configuration of the voice assistant model for each user account. The on-device model information database 2352 includes, for example, user account information, identification information for a plurality of devices registered in association with a user account, identification information of a function determination model corresponding to each of the plurality of devices, and a function determination model. At least one of version information, version information of a device determination model, and information on a device type that may be determined as an operation performing device based on the device determination model may be stored.

일 실시예에서, 음성 비서 서버(2000)는 온 디바이스 모델 업데이트 모듈(2350)을 이용하여, 업데이트된 디바이스 판단 모델(2330)을 허브 디바이스(1000, 도 2 참조)에 전송하는 것으로 결정할 수 있다. 일 실시예에서, 음성 비서 서버(2000)는 통신 인터페이스(2100)를 이용하여 업데이트된 디바이스 판단 모델(2330)을 허브 디바이스(1000)에 전송할 수 있다. 다른 실시예에서, 음성 비서 서버(2000)는 통신 인터페이스(2100)를 이용하여, 업데이트된 디바이스 판단 모델(2330)를 복수의 디바이스(4000) 중 적어도 하나의 디바이스에 전송할 수도 있다.In an embodiment, the voice assistant server 2000 may determine to transmit the updated device determination model 2330 to the hub device 1000 (refer to FIG. 2) using the on-device model update module 2350. In an embodiment, the voice assistant server 2000 may transmit the updated device determination model 2330 to the hub device 1000 using the communication interface 2100. In another embodiment, the voice assistant server 2000 may transmit the updated device determination model 2330 to at least one of the plurality of devices 4000 using the communication interface 2100.

다른 실시예에서, 음성 비서 서버(2000)는, 허브 디바이스(1000)로부터 허브 디바이스(1000)에 연결되는 신규 디바이스에 대한 정보와 함께 허브 디바이스(1000)에 기 저장된 디바이스 판단 모델에 대한 업데이트를 쿼리 신호를 수신한다. 이 경우, 음성 비서 서버(2000)는, 허브 디바이스(1000)로부터 적어도 사용자 계정 정보 및 허브 디바이스(1000)의 식별 정보(예를 들어, 허브 디바이스의 id 정보)를 쿼리 신호와 함께 수신할 수 있다. 음성 비서 서버(2000)의 온디바이스 모델 업데이트 모듈(2350)은, 적어도 허브 디바이스(1000)로부터 수신한 신규 디바이스에 대한 정보 및 사용자 계정 정보를 이용하여, 허브 디바이스에 기 저장된 디바이스 판단 모델에 대한 업데이트를 수행할 수 있다.In another embodiment, the voice assistant server 2000 queries an update of a device determination model previously stored in the hub device 1000 together with information on a new device connected to the hub device 1000 from the hub device 1000 Receive a signal. In this case, the voice assistant server 2000 may receive at least user account information and identification information (eg, ID information of the hub device) of the hub device 1000 from the hub device 1000 together with a query signal. . The on-device model update module 2350 of the voice assistant server 2000 updates the device determination model previously stored in the hub device by using at least information on a new device and user account information received from the hub device 1000. You can do it.

디바이스 판단 모델에 대한 업데이트는, 음성 비서 서버(2000)의 디바이스 판단 모델(2330)의 업데이트와 유사하다. 즉, 온 디바이스 모델 업데이트 모듈(2350)은 허브 디바이스(1000)의 디바이스 판단 모델이 텍스트로부터 인텐트를 해석하고, 해석 결과 인텐트와 관련된 동작 수행 디바이스로서 신규 디바이스(4300)를 결정할 수 있도록 학습 등을 통해 허브 디바이스(1000)의 디바이스 판단 모델을 새로운 모델로 업데이트할 수 있다. 일 실시예에서, 온디바이스 모델 업데이트 모듈(2350)은 허브 디바이스(1000)의 디바이스 판단 모델의 제1 자연어 이해 모델이 신규 디바이스(4300)와 관련된 텍스트를 해석하도록 학습 등을 통해 제1 자연어 이해 모델을 새로운 모델로 업데이트할 수 있다. 모델 업데이트에 대한 상세한 설명은 도 18a 및 도 18b를 통해 좀 더 자세히 설명한다.The update of the device determination model is similar to the update of the device determination model 2330 of the voice assistant server 2000. That is, the on-device model update module 2350 learns so that the device determination model of the hub device 1000 analyzes the intent from the text and determines a new device 4300 as a device performing an operation related to the intent as a result of the analysis. Through this, the device determination model of the hub device 1000 may be updated to a new model. In one embodiment, the on-device model update module 2350 is a first natural language understanding model through learning to interpret the text related to the new device 4300 by the first natural language understanding model of the device determination model of the hub device 1000. Can be updated with a new model. A detailed description of the model update will be described in more detail with reference to FIGS. 18A and 18B.

일 실시예에서, 음성 비서 서버(2000)는 허브 디바이스(1000)로부터 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)의 전송을 요청하는 신호가 수신할 수 있다. 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)의 전송을 요청하는 신호가 수신되는 경우, 음성 비서 서버(2000)는 온 디바이스 모델 업데이트 모듈(2350)을 이용하여 신규 디바이스에 대응하는 기능 판단 모델(2368)을 허브 디바이스(1000)에 전송할 수 있다.In an embodiment, the voice assistant server 2000 may receive a signal requesting transmission of a function determination model 2368 corresponding to the new device 4300 from the hub device 1000. When a signal requesting transmission of the function determination model 2368 corresponding to the new device 4300 is received, the voice assistant server 2000 determines the function corresponding to the new device using the on-device model update module 2350 The model 2368 may be transmitted to the hub device 1000.

음성 비서 서버(2000)는, 데이터 어댑터 모듈(미도시)를 포함할 수 있다. 데이터 어댑터 모듈(미도시)은, 음성 비서 서버와 IoT 서버를 연동시키기 위해 음성 비서 서버의 출력 데이터를 IoT 서버에서 처리 가능한 형태의 데이터로 변환하는 SW 모듈을 의미한다. 음성 비서 서버(2000)는 제조사 또는 모델명 별로 데이터 어댑터 모듈을 저장할 수 있으며, 복수 개의 데이터 어댑터 모듈을 저장할 수 있다. 음성 비서 서버(2000)는, 허브 디바이스(1000)의 요청에 의해 신규 디바이스에 대응하는 데이터 어댑터 모듈을 허브 디바이스(1000)로 전송할 수 있다. 다른 실시예에서, 음성 비서 서버(2000)는, 허브 디바이스의 요청이 없는 경우에도, IoT 서버로부터 획득한 신규 디바이스의 제조사 또는 모델명 정보에 기초하여 신규 디바이스에 대응하는 데이터 어댑터 모듈을 허브 디바이스로 전송할 수 있다.The voice assistant server 2000 may include a data adapter module (not shown). The data adapter module (not shown) refers to a SW module that converts output data of the voice assistant server into data in a form that can be processed by the IoT server in order to link the voice assistant server with the IoT server. The voice assistant server 2000 may store data adapter modules for each manufacturer or model name, and may store a plurality of data adapter modules. The voice assistant server 2000 may transmit a data adapter module corresponding to the new device to the hub device 1000 at the request of the hub device 1000. In another embodiment, the voice assistant server 2000 transmits a data adapter module corresponding to the new device to the hub device based on the manufacturer or model name information of the new device obtained from the IoT server, even when there is no request from the hub device. I can.

다른 실시예에서, 음성 비서 서버(2000)는 허브 디바이스(1000)로부터 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 복수의 디바이스(4000) 중 어느 하나의 디바이스에 전송할 것을 요청하는 쿼리(query)를 수신할 수 있다. 이 경우, 음성 비서 서버(2000)는 쿼리와 함께 복수의 디바이스(4000) 중 어느 하나의 디바이스에 관한 식별 정보(예를 들어, 디바이스 id)를 수신할 수도 있다. 음성 비서 서버(2000)는 온 디바이스 모델 업데이트 모듈(2350)을 이용하여, 복수의 디바이스(4000) 중 수신된 디바이스 정보에 따라 결정된 디바이스에 신규 디바이스에 대응하는 기능 판단 모델(2368)을 전송할 수 있다. In another embodiment, the voice assistant server 2000 is a query requesting to transmit the function determination model 2368 corresponding to the new device 4300 from the hub device 1000 to any one of the plurality of devices 4000 (query) can be received. In this case, the voice assistant server 2000 may receive identification information (eg, device ID) regarding any one of the plurality of devices 4000 together with the query. The voice assistant server 2000 may transmit a function determination model 2368 corresponding to the new device to a device determined according to the received device information among the plurality of devices 4000 using the on-device model update module 2350. .

도 4는 본 개시의 일 실시예에 따른 IoT 서버(3000)의 구성 요소를 도시한 블록도이다.4 is a block diagram illustrating components of an IoT server 3000 according to an embodiment of the present disclosure.

IoT 서버(3000)는 복수의 디바이스(4000, 도 1 참조) 각각에 관한 디바이스 정보를 획득하고, 저장하고, 관리하는 서버이다. IoT 서버(3000)는 저장된 디바이스 정보를 활용하여 디바이스를 제어할 수 있는 제어 명령을 획득, 결정 또는 생성할 수 있다. 도 1에서는 IoT 서버(3000)가 음성 비서 서버(2000)와는 별개의 독립된 하드웨어 장치로 구성되는 것으로 도시되어 있지만, 이에 한정되는 것은 아니다. 일 실시예에서, IoT 서버(3000)는 음성 비서 서버(2000, 도 1 참조)의 일 구성 요소이거나, 또는 소프트웨어로 구분되도록 설계된 서버일 수 있다. The IoT server 3000 is a server that acquires, stores, and manages device information for each of a plurality of devices 4000 (refer to FIG. 1 ). The IoT server 3000 may acquire, determine, or generate a control command capable of controlling a device by using the stored device information. In FIG. 1, the IoT server 3000 is illustrated as being configured as an independent hardware device separate from the voice assistant server 2000, but is not limited thereto. In one embodiment, the IoT server 3000 may be a component of the voice assistant server 2000 (refer to FIG. 1 ), or may be a server designed to be classified by software.

도 4를 참조하면, IoT 서버(3000)는 적어도 통신 인터페이스(3100), 프로세서(3200), 및 메모리(3300)을 포함할 수 있다. Referring to FIG. 4, the IoT server 3000 may include at least a communication interface 3100, a processor 3200, and a memory 3300.

IoT 서버(3000)는 통신 인터페이스(3100)를 통해 음성 비서 서버(2000) 또는 동작 수행 디바이스와 네트워크를 통해 연결되고, 데이터를 수신 또는 전송할 수 있다. IoT 서버(3000)는 프로세서(3200)의 제어에 따라 통신 인터페이스(3100)를 통해 음성 비서 서버(2000) 또는 동작 수행 디바이스로 메모리(3300)에 저장된 데이터를 전송할 수 있다. 또한 IoT 서버(3000)는 프로세서(3200)의 제어에 따라 통신 인터페이스(3100)를 통해 음성 비서 서버(2000) 또는 동작 수행 디바이스로부터 데이터를 수신할 수 있다. The IoT server 3000 is connected to the voice assistant server 2000 or an operation performing device through a network through the communication interface 3100 and may receive or transmit data. The IoT server 3000 may transmit data stored in the memory 3300 to the voice assistant server 2000 or an operation performing device through the communication interface 3100 under the control of the processor 3200. In addition, the IoT server 3000 may receive data from the voice assistant server 2000 or an operation performing device through the communication interface 3100 under the control of the processor 3200.

일 실시예에서, 통신 인터페이스(3100)는 복수의 디바이스(4000, 도 1 참조) 각각으로부터 디바이스 식별 정보(예: 디바이스의 id 정보), 기능 수행 능력 정보(capability), 위치 정보, 및 상태 정보 중 적어도 하나를 포함하는 디바이스 정보를 수신할 수 있다. 일 실시예에서, 통신 인터페이스(3100)는 복수의 디바이스(4000) 각각으로부터 사용자 계정 정보를 수신할 수 있다. 또한, 통신 인터페이스(3100)는 복수의 디바이스(4000)로부터 전원 온오프(on/off), 또는 실행하고 있는 동작에 관한 정보를 수신할 수도 있다. 통신 인터페이스(3100)는 수신된 디바이스 정보를 메모리(3300)에 제공할 수 있다.In one embodiment, the communication interface 3100 includes device identification information (eg, device ID information), function performance capability information (capability), location information, and status information from each of a plurality of devices 4000 (see FIG. 1). Device information including at least one may be received. In an embodiment, the communication interface 3100 may receive user account information from each of the plurality of devices 4000. In addition, the communication interface 3100 may receive power on/off from the plurality of devices 4000 or information on an operation being executed. The communication interface 3100 may provide the received device information to the memory 3300.

일 실시예에서, 통신 인터페이스(3100)는 신규 디바이스(4300, 도 1 참조)로부터, 신규 디바이스(4300)에 로그인된 사용자 계정 정보 및 신규 디바이스(4300)에 관한 디바이스 정보를 수신할 수 있다. In an embodiment, the communication interface 3100 may receive user account information logged in to the new device 4300 and device information about the new device 4300 from the new device 4300 (refer to FIG. 1 ).

일 실시예에서, 통신 인터페이스(3100)는 프로세서(3200)의 제어에 의해, 신규 디바이스(4300)의 사용자 계정 정보 및 사용자 계정에 등록된 신규 디바이스(4300)의 디바이스 정보를 음성 비서 서버(2000, 도 1 참조)에 전송할 수 있다. In one embodiment, the communication interface 3100 transmits the user account information of the new device 4300 and the device information of the new device 4300 registered in the user account under the control of the processor 3200 to the voice assistant server 2000. 1).

프로세서(3200)는 통신 인터페이스(3100)를 통해 수신한 복수의 디바이스(4000) 각각에 관한 디바이스 정보를 메모리(3300)에 저장할 수 있다. 일 실시예에서, 메모리(3300)는 복수의 디바이스(4000)로부터 수신된 사용자 계정 정보에 따라 디바이스 정보를 분류하고, 분류된 디바이스 정보를 룩 업 테이블(look-up table, LUT) 형태로 저장할 수 있다.The processor 3200 may store device information regarding each of the plurality of devices 4000 received through the communication interface 3100 in the memory 3300. In one embodiment, the memory 3300 may classify device information according to user account information received from a plurality of devices 4000 and store the classified device information in the form of a look-up table (LUT). have.

프로세서(3200)는 통신 인터페이스(3100)를 통해 수신한 신규 디바이스(4300)에 관한 디바이스 정보 및 신규 디바이스(4300)를 통해 로그인된 사용자 계정 정보를 메모리(3300)에 저장할 수 있다. 일 실시예에서, 프로세서(3200)는 신규 디바이스(4300)의 디바이스 정보, 예를 들어 신규 디바이스(4300)의 식별 정보(예: 디바이스의 id 정보), 기능 수행 능력 정보(capability), 위치 정보, 및 상태 정보 중 적어도 하나를 메모리(3300) 내의 신규 디바이스(4300)에 대응하는 사용자 계정 정보에 룩 업 테이블 형태로 저장할 수 있다. The processor 3200 may store device information on the new device 4300 received through the communication interface 3100 and user account information logged in through the new device 4300 in the memory 3300. In one embodiment, the processor 3200 includes device information of the new device 4300, for example, identification information of the new device 4300 (eg, device ID information), function performance information (capability), location information, And at least one of the state information may be stored in the user account information corresponding to the new device 4300 in the memory 3300 in the form of a lookup table.

일 실시예에서, 통신 인터페이스(3100)는 음성 비서 서버(2000)로부터 사용자 계정 정보 및 사용자 계정 정보에 대하여 기 등록된 복수의 디바이스(4000)에 관한 디바이스 정보를 요청하는 쿼리(query)를 수신할 수 있다. 프로세서(3200)는 수신된 쿼리에 응답하여, 사용자 계정에 대하여 기 등록된 복수의 디바이스(4000)에 관한 디바이스 정보를 메모리(3300)로부터 획득하고, 획득한 디바이스 정보를 음성 비서 서버(2000)에 전송하도록 통신 인터페이스(3100)를 제어할 수 있다. In one embodiment, the communication interface 3100 may receive a query for requesting device information about a plurality of devices 4000 previously registered for user account information and user account information from the voice assistant server 2000. I can. In response to the received query, the processor 3200 acquires device information about a plurality of devices 4000 previously registered for a user account from the memory 3300, and transmits the acquired device information to the voice assistant server 2000. The communication interface 3100 can be controlled to transmit.

일 실시예에서, 통신 인터페이스(3100)는 음성 비서 서버(2000)로부터 사용자 계정 정보에 새롭게 등록된 신규 디바이스(4300)에 관한 디바이스 정보를 요청하는 쿼리를 수신할 수 있다. 이 경우, 프로세서(3200)는 수신된 쿼리에 응답하여, 사용자 계정에 새롭게 등록된 신규 디바이스(4300)에 관한 디바이스 정보를 음성 비서 서버(2000)에 전송하도록 통신 인터페이스(3100)를 제어할 수 있다. In an embodiment, the communication interface 3100 may receive a query requesting device information about a new device 4300 newly registered in user account information from the voice assistant server 2000. In this case, the processor 3200 may control the communication interface 3100 to transmit device information about the new device 4300 newly registered in the user account to the voice assistant server 2000 in response to the received query. .

프로세서(3200)는, 음성 비서 서버(2000)로부터 수신한 동작 정보에 기초하여, 동작을 수행하도록 결정된 동작 수행 디바이스에 제어 명령을 전송하도록 통신 인터페이스(3100)를 제어할 수 있다. The processor 3200 may control the communication interface 3100 to transmit a control command to an operation performing device determined to perform an operation based on the operation information received from the voice assistant server 2000.

IoT 서버(3000)는 통신 인터페이스(3100)를 통해 제어 명령에 따른 동작 수행 결과를, 동작을 수행한 디바이스로부터 수신할 수 있다. The IoT server 3000 may receive a result of performing an operation according to a control command through the communication interface 3100 from a device that has performed the operation.

도 5는 본 개시의 일 실시예에 따른 복수의 디바이스(4000)의 일부 구성 요소를 도시한 블록도이다.5 is a block diagram illustrating some components of a plurality of devices 4000 according to an embodiment of the present disclosure.

복수의 디바이스(4000)는, 허브 디바이스(1000, 도 1 참조) 또는 IoT 서버(3000, 도 1 참조)에 의한 제어를 받는 피제어 디바이스일 수 있다. 일 실시예에서, 복수의 디바이스(4000)는 허브 디바이스(1000) 또는 IoT 서버(3000)로부터 수신된 제어 명령에 기초하여 동작을 실행하는 익스큐터 디바이스(executor device)일 수 있다. The plurality of devices 4000 may be controlled devices that are controlled by a hub device 1000 (see FIG. 1) or an IoT server 3000 (see FIG. 1). In an embodiment, the plurality of devices 4000 may be an executor device that executes an operation based on a control command received from the hub device 1000 or the IoT server 3000.

도 5를 참조하면, 복수의 디바이스(4000)는 제1 디바이스(4100), 제2 디바이스(4200), 및 신규 디바이스(4300)를 포함할 수 있다. 그러나, 이에 한정되는 것은 아니고, 일 실시예에서, 복수의 디바이스(4000)는 기 등록된 제1 디바이스(4100) 및 제2 디바이스(4200)만을 포함하고, 신규 디바이스(4300)는 포함하지 않을 수 있다. Referring to FIG. 5, a plurality of devices 4000 may include a first device 4100, a second device 4200, and a new device 4300. However, the present invention is not limited thereto, and in one embodiment, the plurality of devices 4000 may include only the previously registered first device 4100 and the second device 4200, and may not include the new device 4300. have.

신규 디바이스(4300)는 허브 디바이스(1000)의 사용자가 신규로 취득하고, 허브 디바이스(1000) 및 기 등록된 다른 디바이스(4100, 4200)들과 동일한 사용자 계정으로 로그인함으로써, IoT 서버(3000, 도 1 참조)에 등록된 디바이스일 수 있다.The new device 4300 is newly acquired by a user of the hub device 1000 and logs in with the same user account as the hub device 1000 and other previously registered devices 4100 and 4200. 1).

도 5에 도시된 실시예에서, 제1 디바이스(4100)는 에어컨이고, 제2 디바이스(4200)는 TV이고, 신규 디바이스(4300)는 공기청정기인 것으로 도시되어 있지만, 이는 예시적인 것이다. 본 개시의 복수의 디바이스(4000)가 도 5에 도시된 디바이스 타입으로 한정되는 것은 아니다.In the embodiment shown in FIG. 5, it is shown that the first device 4100 is an air conditioner, the second device 4200 is a TV, and the new device 4300 is an air purifier, but this is exemplary. The plurality of devices 4000 of the present disclosure are not limited to the device type illustrated in FIG. 5.

도 5에는 제1 디바이스(4100), 제2 디바이스(4200), 및 신규 디바이스(4300) 각각이 프로세서, 메모리, 및 통신 인터페이스만을 포함하고 있는 것으로 도시되었지만, 이는 설명의 편의를 위한 것이다. 도 5에서 복수의 디바이스(4000)가 제어 명령에 기초하여 동작을 실행하기 위한 각각의 구성 요소들은 생략되었다.In FIG. 5, each of the first device 4100, the second device 4200, and the new device 4300 is shown to include only a processor, a memory, and a communication interface, but this is for convenience of description. In FIG. 5, components for the plurality of devices 4000 to perform an operation based on a control command are omitted.

복수의 디바이스(4000) 중 일부는 기능 판단 모델을 저장할 수 있다. 도 5에 도시된 실시예에서, 제1 디바이스(4100)는 통신 인터페이스(4110), 프로세서(4120), 및 메모리(4130)를 포함하고, 메모리(4130) 내에는 기능 판단 모델(4132)이 저장될 수 있다. 제1 디바이스(4100)에 저장된 기능 판단 모델(4132)은, 제1 디바이스(4100)가 동작을 실행하기 위한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용되는 모델일 수 있다. 기능 판단 모델(4132)은, 허브 디바이스(1000) 또는 IoT 서버(3000)로부터 수신한 텍스트의 적어도 일부를 분석하고, 텍스트의 적어도 일부에 대한 분석 결과에 기초하여 제1 디바이스(4100)가 수행할 동작에 관한 동작 정보를 획득하도록 구성된 자연어 이해 모델(4134)을 포함할 수 있다. 기능 판단 모델(4132)은, 제1 디바이스(4100)가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 생성하기 위하여 디바이스의 세부 동작에 관련된 동작 정보를 관리하는 액션 플랜 관리 모델(4136)을 포함할 수 있다. 액션 플랜 관리 모델(4136)은, 텍스트의 적어도 일부에 관한 분석 결과에 기초하여, 제1 디바이스(4100)가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 플래닝(planning)할 수 있다.Some of the plurality of devices 4000 may store a function determination model. In the embodiment shown in FIG. 5, the first device 4100 includes a communication interface 4110, a processor 4120, and a memory 4130, and a function determination model 4132 is stored in the memory 4130. Can be. The function determination model 4132 stored in the first device 4100 may be a model used to obtain detailed operations for the first device 4100 to execute an operation and operation information regarding a relationship between the detailed operations. have. The function determination model 4132 analyzes at least a part of the text received from the hub device 1000 or the IoT server 3000, and the first device 4100 to perform based on the analysis result of the at least part of the text. A natural language understanding model 4134 configured to obtain motion information regarding motion may be included. The function determination model 4132 includes an action plan management model 4136 that manages operation information related to detailed operations of the device in order to generate detailed operations to be performed by the first device 4100 and an execution order of the detailed operations. can do. The action plan management model 4136 may plan detailed operations to be performed by the first device 4100 and an execution order of the detailed operations based on an analysis result of at least a portion of the text.

제2 디바이스(4200)는 통신 인터페이스(4210), 프로세서(4220), 및 메모리(4230)를 포함할 수 있다. 신규 디바이스(4300)는 통신 인터페이스(4310), 프로세서(4320), 및 메모리(4330)를 포함할 수 있다. 제2 디바이스(4200) 및 신규 디바이스(4300)는, 제1 디바이스(4100)와는 달리 기능 판단 모델을 저장하지 않는다. 제2 디바이스(4200) 및 신규 디바이스(4300)는 허브 디바이스(1000, 도 1 참조) 또는 IoT 서버(3000, 도 1 참조)로부터 텍스트의 적어도 일부를 수신하지 않는다. 제2 디바이스(4200) 및 신규 디바이스(4300)는 허브 디바이스(1000) 또는 IoT 서버(3000)로부터 제어 명령을 수신하고, 수신된 제어 명령에 기초하여 동작을 실행할 수 있다. The second device 4200 may include a communication interface 4210, a processor 4220, and a memory 4230. The new device 4300 may include a communication interface 4310, a processor 4320, and a memory 4330. Unlike the first device 4100, the second device 4200 and the new device 4300 do not store a function determination model. The second device 4200 and the new device 4300 do not receive at least a portion of the text from the hub device 1000 (see FIG. 1) or the IoT server 3000 (see FIG. 1 ). The second device 4200 and the new device 4300 may receive a control command from the hub device 1000 or the IoT server 3000 and execute an operation based on the received control command.

그러나, 이는 설명의 편의를 위한 것이고, 이에 한정되지 않는다. 일 실시예에서 신규 디바이스(4300)는, 신규 디바이스(4300)가 동작을 실행하기 위한 세부 동작들, 세부 동작들 간의 연관 관계, 및 세부 동작들의 실행 순서에 관한 동작 정보를 획득하기 위한 기능 판단 모델을 자체적으로 포함할 수 있다. However, this is for convenience of description and is not limited thereto. In one embodiment, the new device 4300 is a function determination model for acquiring detailed operations for the new device 4300 to execute an operation, a correlation relationship between the detailed operations, and operation information regarding an execution order of the detailed operations Can contain itself.

복수의 디바이스(4000)는 통신 인터페이스(4110, 4210, 4310)를 이용하여 각각의 사용자의 계정 정보 및 디바이스 정보를 IoT 서버(3000)에 전송할 수 있다. 디바이스 정보는 예를 들어, 복수의 디바이스(4000) 각각의 식별 정보(예를 들어, 디바이스 id 정보), 복수의 디바이스(4000) 각각의 디바이스 타입, 복수의 디바이스(4000) 각각의 기능 수행 능력(capability), 위치 정보, 및 상태 정보 중 적어도 하나를 포함할 수 있다. The plurality of devices 4000 may transmit each user's account information and device information to the IoT server 3000 using the communication interfaces 4110, 4210, and 4310. The device information includes, for example, identification information (e.g., device ID information) of each of the plurality of devices 4000, a device type of each of the plurality of devices 4000, and a function performance capability of each of the plurality of devices 4000 ( capability), location information, and status information.

일 실시예에서, 복수의 디바이스(4000) 중 적어도 하나의 디바이스는 추가, 변경, 또는 삭제된 기능에 관한 업데이트된 기능 판단 모델을 포함할 수 있다. 예를 들어, 제1 디바이스(4100)에 '무풍 기능'이 추가된 경우, 제1 디바이스(4100)의 메모리(4130) 내에 저장된 기능 판단 모델(4132)은 업데이트될 수 있다. 제1 디바이스(4100)의 기능 판단 모델(4132)이 업데이트 되는 경우, 제1 디바이스(4100)는 통신 인터페이스(4110)를 이용하여 업데이트된 기능 판단 모델(4132)에 관한 정보를 IoT 서버(3000)에 전송할 수 있다. In an embodiment, at least one device among the plurality of devices 4000 may include an updated function determination model regarding an added, changed, or deleted function. For example, when the'windless function' is added to the first device 4100, the function determination model 4132 stored in the memory 4130 of the first device 4100 may be updated. When the function determination model 4132 of the first device 4100 is updated, the first device 4100 transmits information on the updated function determination model 4132 using the communication interface 4110 to the IoT server 3000. Can be transferred to.

신규 디바이스(4300)는 통신 인터페이스(4310)를 통해, 신규 디바이스(4300)에 로그인된 사용자의 사용자 계정 정보 및 디바이스 정보를 IoT 서버(3000)에 전송할 수 있다. 일 실시예에서, 신규 디바이스(4300)는 통신 인터페이스(4310)을 이용하여, 자체적으로 기능 판단 모델을 저장하고 있는지 여부에 관한 정보를 IoT 서버(3000)에 전송할 수 있다. The new device 4300 may transmit user account information and device information of a user logged in to the new device 4300 to the IoT server 3000 through the communication interface 4310. In an embodiment, the new device 4300 may transmit information on whether or not it stores a function determination model to the IoT server 3000 by using the communication interface 4310.

일 실시예에서, 복수의 디바이스(4000)는 통신 인터페이스(4110, 4210, 4310)를 이용하여, 사용자의 계정 정보와 복수의 디바이스(4000) 각각이 자체적으로 디바이스 판단 모델을 저장하고 있는지 여부 및 기능 판단 모델을 저장하고 있는지 여부에 관한 정보를 허브 디바이스(1000, 도 1 참조)에 전송할 수도 있다. In one embodiment, the plurality of devices 4000 use the communication interfaces 4110, 4210, and 4310 to determine whether the user's account information and whether each of the plurality of devices 4000 stores their own device determination models and functions. Information on whether or not the determination model is stored may be transmitted to the hub device 1000 (refer to FIG. 1 ).

도 6은 본 개시의 허브 디바이스(1000)가 음성 비서 서버(2000)로부터 음성 비서 모델의 적어도 일부를 수신하여 저장하는 방법을 도시한 흐름도이다.6 is a flowchart illustrating a method of receiving and storing at least a part of a voice assistant model from the voice assistant server 2000 by the hub device 1000 of the present disclosure.

단계 S610에서 허브 디바이스(1000)는, 허브 디바이스(1000)와 연결되는 신규 디바이스의 정보를 수신한다. 일 실시예에서 허브 디바이스(1000)는, 허브 디바이스(1000)의 사용자와 동일한 사용자 계정으로 로그인되고, 사용자 계정을 통해 IoT 서버(3000, 도 1 참조)에 새롭게 등록된 신규 디바이스에 관한 디바이스 정보를 수신할 수 있다. 신규 디바이스는 허브 디바이스(1000)의 사용자가 구매 또는 소유권 이전 등을 통해 신규로 취득하고, 허브 디바이스(1000)와 동일한 사용자 계정으로 로그인함으로써, IoT 서버(3000)에 등록된 디바이스일 수 있다. 허브 디바이스(1000)가 수신하는 신규 디바이스의 디바이스 정보는 예를 들어, 신규 디바이스의 식별 정보(예를 들어, 디바이스 id 정보), 신규 디바이스의 디바이스 타입, 신규 디바이스의 기능 수행 능력 정보(capability), 및 위치 정보 중 적어도 하나를 포함할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 신규 디바이스의 전원 온오프(on/off), 또는 현재 실행하고 있는 동작에 관한 상태 정보를 수신할 수도 있다. In step S610, the hub device 1000 receives information on a new device connected to the hub device 1000. In one embodiment, the hub device 1000 is logged in with the same user account as the user of the hub device 1000 and receives device information about a new device newly registered in the IoT server 3000 (refer to FIG. 1) through the user account. You can receive it. The new device may be a device registered in the IoT server 3000 by newly acquiring a user of the hub device 1000 through purchase or transfer of ownership, and logging in with the same user account as the hub device 1000. The device information of the new device received by the hub device 1000 includes, for example, identification information of the new device (eg, device id information), the device type of the new device, and capability information of the new device. And at least one of location information. In an embodiment, the hub device 1000 may receive power on/off of a new device or status information regarding an operation currently being executed.

허브 디바이스(1000)는 신규 디바이스의 디바이스 정보를 IoT 서버(3000)로부터 수신할 수 있다. 그러나 이에 한정되는 것은 아니고, 허브 디바이스(1000)는 음성 비서 서버(2000, 도 1 참조)로부터 신규 디바이스의 디바이스 정보를 수신할 수 있다. The hub device 1000 may receive device information of a new device from the IoT server 3000. However, the present invention is not limited thereto, and the hub device 1000 may receive device information of a new device from the voice assistant server 2000 (refer to FIG. 1 ).

단계 S620에서, 허브 디바이스(1000)는 음성 비서 서버(2000)에, 허브 디바이스(1000)에 저장된 디바이스 판단 모델에 대한 업데이트를 요청한다. 일 실시예에서, 허브 디바이스(1000)는 단계 S610에서 수신한 신규 디바이스의 디바이스 정보에 기초하여, 사용자의 음성 입력으로부터 신규 디바이스와 관련된 텍스트를 분석하고, 신규 디바이스를 동작 수행 디바이스로 결정할 수 있도록, 메모리(1300, 도 2 참조)에 기 저장된 디바이스 판단 모델에 관한 업데이트를 요청하는 쿼리(query) 신호를 음성 비서 서버(2000)에 전송할 수 있다. 이 경우, 허브 디바이스(1000)는 신규 디바이스의 사용자 계정 정보 및 허브 디바이스(1000)의 식별 정보(예를 들어, 허브 디바이스의 id 정보)를 쿼리 신호와 함께 음성 비서 서버(2000)에 전송할 수 있다. In step S620, the hub device 1000 requests the voice assistant server 2000 to update the device determination model stored in the hub device 1000. In an embodiment, based on the device information of the new device received in step S610, the hub device 1000 analyzes text related to the new device from the user's voice input, and determines the new device as the device for performing the operation, A query signal requesting an update on a device determination model previously stored in the memory 1300 (refer to FIG. 2) may be transmitted to the voice assistant server 2000. In this case, the hub device 1000 may transmit user account information of the new device and identification information of the hub device 1000 (eg, ID information of the hub device) to the voice assistant server 2000 together with a query signal. .

단계 S630에서, 허브 디바이스(1000)는 음성 비서 서버(2000)로부터 업데이트된 디바이스 판단 모델을 수신하여 저장한다. 일 실시예에서, 허브 디바이스(1000)는 신규 디바이스에 관한 사용자의 음성 입력을 분석하고, 분석 결과 신규 디바이스를 동작 수행 디바이스로 결정하기 위하여 업데이트된 디바이스 판단 모델을 음성 비서 서버(2000)로부터 다운로드(download)하고, 허브 디바이스(1000) 내부의 메모리(1300, 도 2 참조)에 업데이트된 디바이스 판단 모델을 저장할 수 있다. In step S630, the hub device 1000 receives and stores the updated device determination model from the voice assistant server 2000. In one embodiment, the hub device 1000 analyzes a user's voice input for a new device, and as a result of the analysis, downloads an updated device determination model from the voice assistant server 2000 in order to determine the new device as an operation performing device ( download), and the updated device determination model may be stored in the memory 1300 (refer to FIG. 2) inside the hub device 1000.

단계 S640에서, 허브 디바이스(1000)는 음성 비서 서버(2000)에, 신규 디바이스에 대응하는 기능 판단 모델의 정보를 요청하고, 음성 비서 서버(2000)로부터 신규 디바이스에 대응하는 기능 판단 모델의 정보를 수신한다. 일 실시예에서, 허브 디바이스(1000)는 신규 디바이스에 대응하는 기능 판단 모델의 정보를 요청하는 경우, 허브 디바이스(1000) 및 신규 디바이스 각각의 식별 정보(예를 들어, 디바이스 id)와 사용자 계정 정보를 음성 비서 서버(2000)에 전송할 수 있다. In step S640, the hub device 1000 requests information on the function determination model corresponding to the new device from the voice assistant server 2000, and receives the information on the function determination model corresponding to the new device from the voice assistant server 2000. Receive. In an embodiment, when the hub device 1000 requests information on a function determination model corresponding to a new device, identification information (eg, device ID) and user account information of the hub device 1000 and the new device May be transmitted to the voice assistant server 2000.

신규 디바이스에 대응하는 기능 판단 모델은 신규 디바이스가 동작 수행 디바이스로 결정되는 경우, 신규 디바이스가 수행할 세부 동작들, 각 세부 동작들과 다른 세부 동작과의 연관 관계, 및 세부 동작들의 실행 순서와 관련된 정보를 획득하기 위한 모델이다. 기능 판단 모델의 정보는, 예를 들어 신규 디바이스에 대응하는 기능 판단 모델을 구성하는 파일의 용량 정보 및 기능 판단 모델을 판독하기 위하여 점유되는 RAM 점유율 정보, 및 허브 디바이스(1000)의 프로세서(1200, 도 2 참조)가 기능 판단 모델을 판독하여 기능에 따른 세부 동작들 및 세부 동작들의 순서를 통해 동작 정보를 획득하기 위하여 소요되는 가상의 처리 시간(simulated processing time)에 관한 정보 중 적어도 하나를 포함할 수 있다.The function determination model corresponding to the new device is related to the detailed operations to be performed by the new device, the relationship between each detailed operation and other detailed operations, and the execution order of the detailed operations when the new device is determined as the operation performing device. It is a model for acquiring information. The information on the function determination model includes, for example, capacity information of a file constituting a function determination model corresponding to a new device, information on the occupied RAM occupancy to read the function determination model, and the processor 1200 of the hub device 1000, 2) reads a function determination model and includes at least one of information on a simulated processing time required to obtain operation information through detailed operations according to the function and the order of detailed operations. I can.

단계 S650에서, 허브 디바이스(1000)는 수신된 신규 디바이스에 대응하는 기능 판단 모델의 정보에 기초하여, 신규 디바이스에 대응하는 기능 판단 모델을 허브 디바이스(1000)에 저장할 지 여부를 결정한다. 일 실시예에서, 허브 디바이스(1000)는 프로세서(1200, 도 2 참조) 및 메모리(1300, 도 2 참조)의 리소스 상태를 모니터링하고, 리소스 상태 정보와 신규 디바이스에 대응하는 기능 판단 모델의 정보를 비교 및 분석함으로써, 신규 디바이스에 대응하는 기능 판단 모델을 내부의 메모리(1300)에 저장할 지 여부를 결정할 수 있다. 리소스 상태 정보는 허브 디바이스(1000) 및 복수의 디바이스(4000)의 프로세서(1200, 4120, 4220, 4320) 및 메모리(1300, 4130, 4230, 4310)의 사용 상태를 나타내는 정보로서, 예를 들어, 허브 디바이스(1000) 및 복수의 디바이스(4000) 각각의 내부 메모리(1300, 4130, 4230, 4310)의 잔여 용량, 평균 RAM 사용 용량, 및 평균 프로세서 점유율 정보 중 적어도 하나를 포함할 수 있다. In operation S650, the hub device 1000 determines whether to store the function determination model corresponding to the new device in the hub device 1000, based on the received information on the function determination model corresponding to the new device. In one embodiment, the hub device 1000 monitors the resource status of the processor 1200 (see FIG. 2) and the memory 1300 (see FIG. 2), and provides resource status information and information of a function determination model corresponding to a new device. By comparing and analyzing, it is possible to determine whether to store a function determination model corresponding to the new device in the internal memory 1300. The resource status information is information indicating the usage status of the processors 1200, 4120, 4220, 4320 and the memories 1300, 4130, 4230, 4310 of the hub device 1000 and the plurality of devices 4000, for example, The hub device 1000 and the plurality of devices 4000 may include at least one of the remaining capacity of the internal memories 1300, 4130, 4230, and 4310, the average RAM usage capacity, and the average processor occupancy information.

일 실시예에서, 허브 디바이스(1000)는 프로세서(1200)의 평균 프로세싱 속도, 메모리(1300)의 잔여 용량, 및 RAM의 평균 잔여 용량 중 적어도 하나를 실시간으로 또는 주기적으로 모니터링하고, 모니터링된 결과 정보와 신규 디바이스에 대응하는 기능 판단 모델의 정보를 비교함으로써, 신규 디바이스에 대응하는 기능 판단 모델을 음성 비서 서버(2000)로부터 다운로드하여 메모리(1300)에 저장할 지 여부를 결정할 수 있다. In one embodiment, the hub device 1000 monitors at least one of the average processing speed of the processor 1200, the remaining capacity of the memory 1300, and the average remaining capacity of the RAM in real time or periodically, and monitored result information By comparing the information of the function determination model corresponding to the new device, it is possible to determine whether to download the function determination model corresponding to the new device from the voice assistant server 2000 and store it in the memory 1300.

다른 실시예에서, 허브 디바이스(1000)는 복수의 디바이스(4000, 도 5 참조) 각각의 리소스 상태 정보를 모니터링하고, 복수의 디바이스(4000) 각각의 리소스 상태 정보를 획득할 수 있다. 복수의 디바이스(4000)의 리소스 상태 정보는, 복수의 디바이스(4000)의 프로세서(4120, 4220, 4320, 도 5 참조) 및 메모리(1300, 4130, 4230, 4310, 도 5 참조)의 사용 상태와 관련된 정보로서, 메모리(4130, 4230, 4310)의 잔여 용량, 평균 RAM 사용 용량, 및 평균 프로세서 점유율 정보 중 적어도 하나를 포함할 수 있다. 허브 디바이스(1000)는 리소스 상태 정보에 기초하여, 신규 디바이스에 대응하는 기능 판단 모델을 복수의 디바이스(4000) 중 적어도 하나의 디바이스에 저장할 지 여부를 결정할 수 있다. 허브 디바이스(1000)는 기능 판단 모델의 정보와 복수의 디바이스(4000) 각각의 리소스 상태 정보를 비교 및 분석하고, 비교/분석 결과에 기초하여 신규 디바이스에 대응하는 기능 판단 모델을 복수의 디바이스(4000)의 메모리(4130, 4230, 4310) 중 어느 하나에 저장할 지 여부를 결정할 수 있다. In another embodiment, the hub device 1000 may monitor resource state information of each of the plurality of devices 4000 (refer to FIG. 5) and obtain resource state information of each of the plurality of devices 4000. The resource status information of the plurality of devices 4000 includes the usage status of the processors 4120, 4220, 4320 (see FIG. 5) and the memory (1300, 4130, 4230, 4310, see FIG. 5) of the plurality of devices 4000. As related information, it may include at least one of the remaining capacity of the memories 4130, 4230, and 4310, the average RAM usage capacity, and the average processor occupancy information. The hub device 1000 may determine whether to store a function determination model corresponding to the new device in at least one of the plurality of devices 4000 based on the resource state information. The hub device 1000 compares and analyzes the information of the function determination model and the resource state information of each of the plurality of devices 4000, and determines a function determination model corresponding to the new device based on the comparison/analysis result. ) Of the memory (4130, 4230, 4310) can be determined whether to store.

단계 S650에서 허브 디바이스(1000)가 신규 디바이스에 대응하는 기능 판단 모델을 저장할 지 여부를 결정하는 구체적인 실시예에 대해서는 도 7에서 상세하게 설명하기로 한다.A specific embodiment of determining whether or not the hub device 1000 to store a function determination model corresponding to a new device in step S650 will be described in detail with reference to FIG. 7.

신규 디바이스에 대응하는 기능 판단 모델을 저장하기로 결정한 경우(단계 S660), 허브 디바이스(1000)는 신규 디바이스에 대응하는 기능 판단 모델을 음성 비서 서버(2000)로부터 수신하여, 내부의 메모리(1300, 도 2 참조)에 저장한다. 신규 디바이스에 대응하는 기능 판단 모델을 허브 디바이스(1000) 내부의 메모리(1300)에 저장함으로써, 허브 디바이스(1000)는 신규 디바이스가 동작 수행 디바이스로 결정되는 경우, 음성 비서 서버(2000)에 접속하지 않더라도 신규 디바이스에 관한 세부 동작들, 세부 동작들 간의 연관 관계, 및 세부 동작들의 실행 순서에 관한 정보를 획득할 수 있다. 따라서, 음성 비서 서버(2000)에 접속하기 위하여 소비되는 시간 및 네트워크 사용 비용의 소모를 방지하고, 처리 속도를 향상시킬 수 있다. 또한, 네트워크를 이용할 수 없는 경우, 예를 들어 무선 통신 네트워크를 사용할 수 없거나, Wifi 통신을 사용할 수 없는 경우에도 허브 디바이스(1000)는 신규 디바이스에 관한 동작 정보를 자체적으로 획득할 수 있다. When it is determined to store the function determination model corresponding to the new device (step S660), the hub device 1000 receives the function determination model corresponding to the new device from the voice assistant server 2000, and the internal memory 1300, 2). By storing the function determination model corresponding to the new device in the memory 1300 inside the hub device 1000, the hub device 1000 does not access the voice assistant server 2000 when the new device is determined to be an operation performing device. Even if not, information about detailed operations for a new device, a correlation relationship between detailed operations, and an execution order of the detailed operations may be obtained. Accordingly, it is possible to prevent consumption of time and network usage costs for accessing the voice assistant server 2000, and improve processing speed. In addition, when a network is not available, for example, when a wireless communication network cannot be used or a Wifi communication cannot be used, the hub device 1000 may acquire operation information about a new device by itself.

단계 S660은, 신규 디바이스에 대응하는 기능 판단 모델을 허브 디바이스(1000)의 메모리(1300)에 저장한다고 기재되어 있으나, 이에 한정되는 것은 아니다. 단계 S650에서, 허브 디바이스(1000)가 복수의 디바이스(4000) 각각의 리소스 상태 정보에 기초하여, 신규 디바이스에 대응하는 기능 판단 모델을 복수의 디바이스(4000) 중 적어도 하나의 디바이스에 저장하기로 결정한 경우, 단계 S660에서 허브 디바이스(1000)는 기능 판단 모델을 음성 비서 서버(2000)로부터 수신하여, 결정된 디바이스로 전송할 수 있다. In step S660, it is described that the function determination model corresponding to the new device is stored in the memory 1300 of the hub device 1000, but is not limited thereto. In step S650, the hub device 1000 determines to store a function determination model corresponding to the new device in at least one of the plurality of devices 4000 based on the resource state information of each of the plurality of devices 4000. In this case, in step S660, the hub device 1000 may receive the function determination model from the voice assistant server 2000 and transmit it to the determined device.

다른 실시예에서, 허브 디바이스(1000)는 신규 디바이스에 대응하는 기능 판단 모델을 저장하기로 결정된 디바이스의 디바이스 정보(예를 들어, 디바이스 id)를 음성 비서 서버(2000)에 전송할 수도 있다. 이 경우, 음성 비서 서버(2000)는 디바이스 정보에 기초하여, 결정된 디바이스에 신규 디바이스에 대응하는 기능 판단 모델을 전송할 수 있다. In another embodiment, the hub device 1000 may transmit device information (eg, device ID) of a device determined to store a function determination model corresponding to a new device to the voice assistant server 2000. In this case, the voice assistant server 2000 may transmit a function determination model corresponding to the new device to the determined device based on the device information.

신규 디바이스에 대응하는 기능 판단 모델을 저장하지 않기로 결정한 경우(단계 S670), 허브 디바이스(1000)는 음성 비서 서버(2000)로부터 신규 디바이스에 대응하는 기능 판단 모델에 대한 액세스(access) 정보를 수신한다. 액세스 정보는 예를 들어, 신규 디바이스에 대응하는 기능 판단 모델이 저장된 음성 비서 서버(2000)의 식별 정보(예를 들어, 서버 id), 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 음성 비서 서버(2000) 내의 기능 판단 모델에 접근할 수 있는 API 정보(Application Programming Interface), 기능 판단 모델의 사용 언어 및 대응하는 디바이스의 식별 정보 중 적어도 하나를 포함할 수 있다. 허브 디바이스(1000)는 메모리(1300) 내의 기능 판단 모델 정보 데이터베이스(1362, 도 2 참조)에 수신된 액세스 정보를 저장할 수 있다. 액세스 정보를 메모리(1300) 내에 저장함으로써, 허브 디바이스(1000)는 자체적으로 신규 디바이스에 대응하는 기능 판단 모델을 저장하지 않더라도 액세스 정보를 이용하여 음성 비서 서버(2000)에 접속하고, 음성 비서 서버(2000)에 저장된 신규 디바이스에 대응하는 기능 판단 모델을 이용하여 신규 디바이스에 대한 세부 동작들, 세부 동작들 간의 연관 관계, 및 세부 동작들의 실행 순서에 관한 정보를 획득할 수 있다. When it is determined not to store the function determination model corresponding to the new device (step S670), the hub device 1000 receives access information for the function determination model corresponding to the new device from the voice assistant server 2000. . The access information includes, for example, identification information (eg, server id), location information, IP address information (IP address), MAC address (MAC) of the voice assistant server 2000 in which the function determination model corresponding to the new device is stored. address), API information for accessing the function determination model in the voice assistant server 2000 (Application Programming Interface), a language used for the function determination model, and at least one of identification information of a corresponding device. The hub device 1000 may store the received access information in the function determination model information database 1362 (refer to FIG. 2) in the memory 1300. By storing the access information in the memory 1300, the hub device 1000 connects to the voice assistant server 2000 using the access information even if the function determination model corresponding to the new device is not stored by itself, and the voice assistant server ( 2000), detailed operations for the new device, a correlation relationship between the detailed operations, and information on the execution order of the detailed operations may be obtained by using the function determination model corresponding to the new device.

도 7은 본 개시의 허브 디바이스(1000)가 음성 비서 서버(2000)로부터 수신한 기능 판단 모델의 정보에 기초하여, 기능 판단 모델을 저장할 지 여부를 결정하는 방법을 도시한 흐름도이다. 도 7은 도 6의 단계 S650을 구체화한 흐름도이다. 도 7에 도시된 단계 S710, S712, S714는 도 6에 도시된 단계 S640이 수행된 이후에 수행될 수 있다.7 is a flowchart illustrating a method of determining whether to store a function determination model based on information on a function determination model received from the voice assistant server 2000 by the hub device 1000 of the present disclosure. 7 is a flowchart illustrating step S650 of FIG. 6. Steps S710, S712, and S714 illustrated in FIG. 7 may be performed after step S640 illustrated in FIG. 6 is performed.

단계 S710에서 허브 디바이스(1000)는 내부 플래시 메모리의 잔여 용량을 확인(identify)한다. 플래시 메모리(flash memory)는 허브 디바이스(1000) 내부에 업데이트된 디바이스 판단 모델 및 적어도 하나의 기능 판단 모델을 저장하는 저장 매체일 수 있다. 일 실시예에서, 허브 디바이스(1000)는 플래시 메모리 타입이 아닌, 하드 디스크 타입(hard disk type), SSD(Solid State Drive), 또는 카드 타입의 외장 메모리(예를 들어 SD 또는 XD 메모리 등)를 저장 매체로서 포함할 수 있다. In step S710, the hub device 1000 identifies the remaining capacity of the internal flash memory. The flash memory may be a storage medium that stores an updated device determination model and at least one function determination model in the hub device 1000. In one embodiment, the hub device 1000 uses a hard disk type, a solid state drive (SSD), or a card type external memory (eg, SD or XD memory), not a flash memory type. It can be included as a storage medium.

단계 S712에서 허브 디바이스(1000)는 평균 RAM 메모리 잔여 용량을 확인한다. 평균 RAM 메모리 잔여 용량은 허브 디바이스(1000)가 서비스를 제공하기 위하여 실행하는 적어도 하나의 애플리케이션 또는 푸쉬 알림 등을 수신하기 위하여 백그라운드에서 실행되는 적어도 하나의 애플리케이션에 의해 점유되는 RAM 용량을 제외한, 사용 가능한 RAM 용량의 평균을 나타낸다. In step S712, the hub device 1000 checks the average remaining amount of RAM memory. The average remaining RAM memory capacity is available, excluding the amount of RAM occupied by at least one application running in the background to receive push notifications or at least one application executed by the hub device 1000 to provide a service. Shows the average of RAM capacity.

단계 S714에서 허브 디바이스(1000)는 평균 프로세싱 속도를 확인한다. 허브 디바이스(1000)는 프로세서(1200, 도 2 참조)의 평균 프로세싱 속도를 확인할 수 있다. 평균 프로세싱 속도는, 프로세서(1200)가 적어도 하나의 애플리케이션을 실행하거나, ASR을 수행하여 사용자의 음성 입력을 텍스트로 변환하거나, 디바이스 판단 모델을 이용하여 텍스트와 관련된 동작 수행 디바이스를 결정하는 등의 기능을 수행하기 위한 연산을 처리하는 평균 속도를 나타낸다. In step S714, the hub device 1000 checks the average processing speed. The hub device 1000 may check the average processing speed of the processor 1200 (refer to FIG. 2 ). The average processing speed is a function of the processor 1200 executing at least one application, converting a user's voice input into text by performing ASR, or determining a device for performing an operation related to text using a device determination model. It represents the average speed of processing the operation to perform.

단계 S710, 단계 S712, 및 단계 S714는 허브 디바이스(1000)의 리소스 상태를 모니터링하고, 리소스 상태 정보를 획득하는 단계로서, 프로세서(1200)가 메모리(1300, 도 2 참조)에 저장된 리소스 트래킹 모듈(1350)을 이용하여 수행할 수 있다. 단계 S710, 단계 S712, 및 단계 S714는 실시간 또는 주기적으로 수행될 수 있다. Step S710, step S712, and step S714 are steps of monitoring the resource state of the hub device 1000 and obtaining resource state information, in which the processor 1200 is stored in the memory 1300 (refer to FIG. 2). 1350) can be used. Step S710, step S712, and step S714 may be performed in real time or periodically.

단계 S710, 단계 S712, 및 단계 S714는 동시에 수행될 수 있으나, 이에 한정되는 것은 아니다. Step S710, step S712, and step S714 may be performed simultaneously, but are not limited thereto.

단계 S710, 단계 S712, 및 단계 S714는 모두 수행되는 것은 아니고, 적어도 하나의 단계가 수행될 수도 있다. 단계 S710, 단계 S712, 및 단계 S714 중 어느 하나의 단계가 수행되지 않는 경우, 수행되지 않는 단계 이후 수행되는 단계 역시 수행되지 않을 수 있다. 예를 들어 단계 S710가 수행되지 않는 경우, 단계 S710 이후에 수행되는 후속 단계인 S720는 수행되지 않을 수 있다. Step S710, step S712, and step S714 are not all performed, and at least one step may be performed. If any one of steps S710, S712, and S714 is not performed, steps performed after the steps that are not performed may also not be performed. For example, when step S710 is not performed, a subsequent step S720 performed after step S710 may not be performed.

단계 S710, 단계 S712, 및 단계 S714는 각각 허브 디바이스(1000)의 내부 플래시 메모리 잔여 용량, 허브 디바이스(1000)의 평균 RAM 잔여 용량, 및 허브 디바이스(1000)의 평균 프로세싱 속도를 확인하는 것으로 도시되어 있으나, 이에 한정되는 것은 아니다. 일 실시예에서, 단계 S710, 단계 S712, 및 단계 S714 각각은 허브 디바이스(1000)가 아닌, 복수의 디바이스(4000, 도 5 참조)의 플래시 메모리 잔여 용량, 평균 RAM 잔여 용량, 및 평균 프로세싱 속도를 모니터링할 수 있다. Step S710, step S712, and step S714 are shown as checking the internal flash memory remaining capacity of the hub device 1000, the average RAM remaining capacity of the hub device 1000, and the average processing speed of the hub device 1000, respectively. However, it is not limited thereto. In one embodiment, steps S710, S712, and S714 each determine the remaining flash memory capacity, the average RAM remaining capacity, and the average processing speed of a plurality of devices (4000, see FIG. 5), not the hub device 1000. Can be monitored.

단계 S720에서, 허브 디바이스(1000)는 플래시 메모리 잔여 용량과 수신한 기능 판단 모델에 관한 정보를 비교한다. 단계 S640에서 수신한 기능 판단 모델의 정보는, 기능 판단 모델을 구성하는 파일의 용량 정보 및 기능 판단 모델을 판독하기 위하여 점유되는 RAM 점유율 정보, 및 허브 디바이스(1000)의 프로세서(1200, 도 2 참조)가 기능 판단 모델을 판독하여 기능에 따른 세부 동작들 및 세부 동작들의 순서를 통해 동작 정보를 획득하기 위하여 소요되는 가상의 처리 시간(simulated processing time)에 관한 정보 중 적어도 하나를 포함할 수 있다. 허브 디바이스(1000)는 플래시 메모리의 잔여 용량과 기능 판단 모델을 구성하는 파일의 용량 정보를 비교할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 복수의 디바이스(4000) 각각의 플래시 메모리 잔여 용량과 기능 판단 모델의 용량 정보를 비교할 수도 있다. In step S720, the hub device 1000 compares the remaining capacity of the flash memory with information on the received function determination model. The information on the function determination model received in step S640 includes information on the capacity of a file constituting the function determination model, information on the occupied RAM occupied to read the function determination model, and the processor 1200 of the hub device 1000 (see FIG. 2 ). ) May include at least one of information on a simulated processing time required to read the function determination model and obtain operation information through detailed operations according to a function and a sequence of detailed operations. The hub device 1000 may compare the remaining capacity of the flash memory and capacity information of a file constituting the function determination model. In an embodiment, the hub device 1000 may compare the remaining capacity of the flash memory of each of the plurality of devices 4000 with the capacity information of the function determination model.

단계 S722에서, 허브 디바이스(1000)는 RAM 메모리 잔여 용량을 고려한 기능 판단 모델에 대한 동작을 시뮬레이션한다. 일 실시예에서, 허브 디바이스(1000)는 단계 S712에서 확인한 평균 RAM 메모리 잔여 용량과, 단계 S640에서 수신한 기능 판단 모델의 정보 중 RAM 점유율 정보를 비교함으로써, 프로세서(1200)가 기능 판단 모델에 포함된 프로그래밍 언어로 구성된 명령어들(instructions)을 판독하고 실행하기 위하여 사용하는 RAM 점유 용량을 시뮬레이션할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 복수의 디바이스(4000) 각각의 RAM 잔여 용량을 고려한 기능 판단 모델에 대한 동작을 시뮬레이션할 수도 있다. In step S722, the hub device 1000 simulates the operation of the function determination model in consideration of the remaining amount of RAM memory. In one embodiment, the hub device 1000 compares the average RAM memory remaining capacity checked in step S712 with the RAM occupancy information among the information of the function determination model received in step S640, so that the processor 1200 is included in the function determination model. It is possible to simulate the amount of RAM occupied by reading and executing instructions composed of a programming language. In an embodiment, the hub device 1000 may simulate an operation of a function determination model in consideration of the remaining amount of RAM of each of the plurality of devices 4000.

단계 S724에서, 허브 디바이스(1000)는 평균 프로세싱 속도를 고려하여 기능 판단 모델에 대한 동작을 시뮬레이션한다. 일 실시예에서, 허브 디바이스(1000)는 단계 S714에서 확인한 평균 프로세싱 속도와, 단계 S640에서 수신한 기능 판단 모델의 정보 중 가상의 처리 시간에 관한 정보를 비교함으로써, 기능 판단 모델을 판독하고, 판독된 기능에 따른 세부 동작들 및 세부 동작들의 순서를 통해 동작 정보를 획득하기 위한 프로세싱 속도를 시뮬레이션할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 복수의 디바이스(4000) 각각의 프로세서(4120, 4220, 4320) 각각의 평균 프로세싱 속도를 고려하여, 기능 판단 모델에 대한 동작을 시뮬레이션할 수 있다. In step S724, the hub device 1000 simulates the operation of the function determination model in consideration of the average processing speed. In one embodiment, the hub device 1000 reads the function determination model by comparing the average processing speed checked in step S714 with the information on the virtual processing time among the information of the function determination model received in step S640. The processing speed for acquiring motion information may be simulated through detailed operations according to a function and a sequence of detailed operations. In an embodiment, the hub device 1000 may simulate an operation of a function determination model in consideration of an average processing speed of each of the processors 4120, 4220, and 4320 of each of the plurality of devices 4000.

단계 S730에서, 허브 디바이스(1000)는 메모리의 잔여 용량과 기능 판단 모델의 용량의 차가 기설정된 메모리 잔여 용량의 임계값 보다 큰 지 여부를 확인한다. 일 실시예에서, 허브 디바이스(1000)는 플래시 메모리의 잔여 용량과 기능 판단 모델을 구성하는 파일의 용량 정보의 차를 계산할 수 있다. 기능 판단 모델을 구성하는 파일의 용량 정보는 단계 S640에서 수신한 기능 판단 모델의 정보로부터 획득할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 계산된 차이값을 기설정된 메모리 잔여 용량의 임계값과 비교하고, 비교 결과 계산된 차이값이 기설정된 임계값 보다 큰 지 여부를 확인할 수 있다. In step S730, the hub device 1000 checks whether the difference between the remaining capacity of the memory and the capacity of the function determination model is greater than a predetermined threshold of the remaining capacity of the memory. In an embodiment, the hub device 1000 may calculate a difference between the remaining capacity of the flash memory and capacity information of a file constituting the function determination model. The capacity information of the file constituting the function determination model may be obtained from the information of the function determination model received in step S640. In an embodiment, the hub device 1000 may compare the calculated difference value with a preset threshold value of the remaining memory capacity, and determine whether the calculated difference value as a result of the comparison is greater than a preset threshold value.

플래시 메모리의 잔여 용량과 기능 판단 모델의 용량의 차이값이 기설정된 메모리 잔여 용량의 임계값 보다 크다고 확인된 경우(단계 S740), 허브 디바이스(1000)는 기능 판단 모델의 가상 처리 시간(simulated processing time)이 기설정된 처리 시간의 임계값 보다 짧은지 여부를 확인한다. 일 실시예에서, 허브 디바이스(1000)는 기능 판단 모델의 가상 처리 시간에 관한 정보를 단계 S640에서 수신한 기능 판단 모델의 정보로부터 획득할 수 있다. 허브 디바이스(1000)는 획득된 기능 판단 모델의 가상 처리 시간을 기설정된 처리 시간 임계값과 비교하고, 비교 결과 기능 판단 모델의 가상 처리 시간이 기설정된 임계값 보다 짧은지 여부를 확인할 수 있다. When it is confirmed that the difference value between the remaining capacity of the flash memory and the capacity of the function determination model is larger than the preset threshold of the remaining memory capacity (step S740), the hub device 1000 performs a simulated processing time of the function determination model. ) Is less than a preset processing time threshold. In an embodiment, the hub device 1000 may obtain information on the virtual processing time of the function determination model from the information on the function determination model received in operation S640. The hub device 1000 may compare the virtual processing time of the acquired function determination model with a preset processing time threshold, and as a result of the comparison, determine whether the virtual processing time of the function determination model is shorter than a preset threshold.

플래시 메모리의 잔여 용량과 기능 판단 모델의 용량의 차이값이 기설정된 메모리 잔여 용량의 임계값 보다 작은 것으로 확인된 경우(단계 S670), 허브 디바이스(1000)는 음성 비서 서버(2000)로부터 신규 디바이스에 대응하는 기능 판단 모델에 대한 액세스(access) 정보를 수신한다. When it is determined that the difference between the remaining capacity of the flash memory and the capacity of the function determination model is smaller than the preset threshold of the remaining memory capacity (step S670), the hub device 1000 is transferred from the voice assistant server 2000 to the new device. Receives access information for a corresponding function determination model.

기능 판단 모델의 가상 처리 시간이 기설정된 처리 시간 임계값 보다 짧은 것으로 확인된 경우(단계 S660), 허브 디바이스(1000)는 신규 디바이스에 대응하는 기능 판단 모델을 음성 비서 서버(2000)로부터 수신하여 내부 메모리에 저장할 수 있다. When it is determined that the virtual processing time of the function determination model is shorter than the preset processing time threshold (step S660), the hub device 1000 receives the function determination model corresponding to the new device from the voice assistant server 2000 and internally Can be stored in memory.

기능 판단 모델의 가상 처리 시간이 기설정된 처리 시간 임계값 보다 긴 것으로 확인된 경우(단계 S670), 허브 디바이스(1000)는 음성 비서 서버(2000)로부터 신규 디바이스에 대응하는 기능 판단 모델에 대한 액세스(access) 정보를 수신한다. When it is determined that the virtual processing time of the function determination model is longer than the preset processing time threshold (step S670), the hub device 1000 accesses the function determination model corresponding to the new device from the voice assistant server 2000 (step S670). access) information is received.

도 8은 본 개시의 허브 디바이스(1000)가 사용자의 음성 입력에 기초하여 신규 디바이스의 동작을 제어하는 방법을 도시한 흐름도이다. 도 8은 도 6 및 도 7에 도시된 단계 S660 이후에 수행되는 일련의 단계들에 관한 실시예를 포함한다. 도 8에 도시된 단계 S810은 허브 디바이스(1000)가 신규 디바이스에 대응하는 기능 판단 모델을 음성 비서 서버(2000, 도 1 참조)로부터 수신하고, 수신된 신규 디바이스에 대응하는 기능 판단 모델을 내부 메모리에 저장한 이후의 단계를 나타낸다. 8 is a flowchart illustrating a method of controlling an operation of a new device based on a user's voice input by the hub device 1000 of the present disclosure. 8 includes an embodiment of a series of steps performed after step S660 shown in FIGS. 6 and 7. In step S810 shown in FIG. 8, the hub device 1000 receives a function determination model corresponding to the new device from the voice assistant server 2000 (refer to FIG. 1), and the function determination model corresponding to the received new device is stored in an internal memory. It shows the steps after saving to.

단계 S810에서, 허브 디바이스(1000)는 IoT 서버(3000, 도 1 참조)에, 신규 디바이스에 대한 동작 정보를 제어 명령으로 변환하기 위하여 제어 명령 변환 모듈을 요청한다. 신규 디바이스에 대한 동작 정보는, 신규 디바이스에 대응하는 기능 판단 모델을 이용하여 사용자의 음성 입력을 해석함으로써 획득된 정보로서, 신규 디바이스가 수행할 세부 동작들, 각 세부 동작들과 다른 세부 동작과의 연관 관계, 및 세부 동작들의 실행 순서에 관련된 정보일 수 있다. 제어 명령 변환 모듈은, 신규 디바이스가 허브 디바이스(1000)에 의해 획득된 동작 정보 내에 포함된 세부 동작들을 수행할 수 있도록, 동작 정보를 신규 디바이스에 의해 판독 가능하고, 실행 가능한 명령어 또는 명령어의 집합으로 변환하는 모듈일 수 있다. 일 실시예에서, 허브 디바이스(1000)는 신규 디바이스의 식별 정보(예를 들어, 신규 디바이스의 id) 및 제어 명령 변환 모듈을 요청하는 쿼리(query)를 IoT 서버(3000)에 전송할 수 있다. In step S810, the hub device 1000 requests a control command conversion module to convert operation information for a new device into a control command to the IoT server 3000 (refer to FIG. 1). The operation information for the new device is information obtained by analyzing the user's voice input using a function determination model corresponding to the new device. It may be information related to an association relationship and an execution order of detailed operations. The control command conversion module, so that the new device can perform detailed operations included in the operation information acquired by the hub device 1000, the operation information can be read by the new device, and can be executed as a command or a set of commands. It may be a module that converts. In an embodiment, the hub device 1000 may transmit identification information of a new device (eg, an id of a new device) and a query for requesting a control command conversion module to the IoT server 3000.

단계 S820에서, 허브 디바이스(1000)는 IoT 서버(3000)로부터, 신규 디바이스에 대한 제어 명령 변환 모듈을 수신한다. 일 실시예에서, 허브 디바이스(1000)는 수신된 제어 명령 변환 모듈을 메모리(1300, 도 2 참조)에 저장할 수 있다.In step S820, the hub device 1000 receives a control command conversion module for a new device from the IoT server 3000. In an embodiment, the hub device 1000 may store the received control command conversion module in the memory 1300 (refer to FIG. 2 ).

단계 S830에서, 허브 디바이스(1000)는 사용자의 음성 입력을 수신한다. 일 실시예에서, 허브 디바이스(1000)는 마이크(1100, 도 2 참조)를 통해 사용자로부터 음성 입력(예를 들어, 사용자의 발화)을 수신하고, 수신된 음성 입력으로부터 음성 신호를 획득할 수 있다. 일 실시예에서, 허브 디바이스(1000)의 프로세서(1200, 도 2 참조)는, 마이크(1100)를 통해 수신된 소리를 음향 신호로 변환하고, 음향 신호로부터 노이즈(예를 들어, 비음성 성분)를 제거하여 음성 신호를 획득할 수 있다.In step S830, the hub device 1000 receives a user's voice input. In an embodiment, the hub device 1000 may receive a voice input (eg, a user's utterance) from a user through a microphone 1100 (see FIG. 2) and obtain a voice signal from the received voice input. . In one embodiment, the processor 1200 (refer to FIG. 2) of the hub device 1000 converts sound received through the microphone 1100 into an acoustic signal, and noise (eg, a non-speech component) from the acoustic signal It is possible to obtain a voice signal by removing.

단계 S840에서, 허브 디바이스(1000)는 ASR(Automatic Speech Recognition)을 수행하여, 수신된 음성 입력을 텍스트로 변환한다. 일 실시예에서, 허브 디바이스(1000)의 프로세서(1200)는 음향 모델(acoustic model; AM) 또는 언어 모델(language model; LM) 등 기 정의된 모델을 이용하여 음성 신호를 컴퓨터로 판독 가능한 텍스트로 변환하는 ASR을 수행할 수 있다. 허브 디바이스(1000)가 노이즈가 제거되지 않은 음향 신호를 수신하는 경우에는, 프로세서(1200)는 수신된 음향 신호에서 노이즈를 제거하여 음성 신호를 획득하고, 음성 신호에 대하여 ASR을 수행할 수 있다.In step S840, the hub device 1000 converts the received voice input into text by performing Automatic Speech Recognition (ASR). In one embodiment, the processor 1200 of the hub device 1000 converts a speech signal into a computer-readable text using a predefined model such as an acoustic model (AM) or a language model (LM). ASR to convert can be performed. When the hub device 1000 receives an acoustic signal from which noise has not been removed, the processor 1200 may obtain a voice signal by removing noise from the received acoustic signal, and perform ASR on the voice signal.

단계 S850에서, 허브 디바이스(1000)는 업데이트된 디바이스 판단 모델을 이용하여 텍스트를 분석하고, 분석된 텍스트와 관련된 동작 수행 디바이스로서 신규 디바이스를 결정한다. 일 실시예에서, 허브 디바이스(1000)의 프로세서(1200)는 업데이트된 디바이스 판단 모델에 포함된 업데이트된 제1 자연어 이해 모델(Natural Language Understanding)을 이용하여 텍스트를 분석하고, 텍스트의 분석 결과에 기초하여 복수의 디바이스 중 사용자의 의도에 따른 동작을 수행할 동작 수행 디바이스로서 신규 디바이스를 결정할 수 있다. 여기서, 복수의 디바이스는 허브 디바이스(1000)와 동일한 사용자 계정으로 로그인 되고, 허브 디바이스(1000)와 네트워크를 통해 연결된 디바이스를 의미한다. 복수의 디바이스는 IoT 서버에 허브 디바이스(1000)와 동일한 사용자 계정으로 등록된 디바이스일 수 있다. In step S850, the hub device 1000 analyzes the text using the updated device determination model, and determines a new device as a device for performing an operation related to the analyzed text. In one embodiment, the processor 1200 of the hub device 1000 analyzes the text using the updated first natural language understanding model included in the updated device determination model, and based on the analysis result of the text. Accordingly, a new device may be determined as an operation performing device to perform an operation according to the user's intention among the plurality of devices. Here, the plurality of devices are devices logged in with the same user account as the hub device 1000 and connected to the hub device 1000 through a network. The plurality of devices may be devices registered with the same user account as the hub device 1000 in the IoT server.

제1 자연어 이해 모델은 음성 입력으로부터 변환된 텍스트를 분석하고, 분석 결과에 기초하여 동작 수행 디바이스를 결정하도록 학습된 모델이다. 제1 자연어 이해 모델은 텍스트를 해석함으로써, 인텐트를 결정할 수 있으며, 인텐트에 기초하여 동작 수행 디바이스를 결정하는데 이용될 수 있다. 허브 디바이스(1000)는 제1 자연어 이해 모델을 이용하여 텍스트를 형태소, 단어(word), 또는 구(phrase)의 단위로 파싱(parse)하고, 형태소, 단어, 또는 구의 언어적 특징(예: 문법적 요소)을 이용하여 파싱된 텍스트로부터 추출된 단어의 의미를 추론할 수 있다. 프로세서(1200)는, 추론된 단어의 의미를 제1 자연어 이해 모델에서 제공되는 기 정의된 인텐트들과 비교함으로써, 추론된 단어의 의미에 대응되는 인텐트를 결정할 수 있다. The first natural language understanding model is a model trained to analyze text converted from a speech input and determine a device for performing an operation based on the analysis result. The first natural language understanding model may determine an intent by interpreting the text, and may be used to determine a device for performing an operation based on the intent. The hub device 1000 parses the text in units of morphemes, words, or phrases using the first natural language understanding model, and performs linguistic characteristics of the morphemes, words, or phrases (e.g., grammatical Element) can be used to infer the meaning of the word extracted from the parsed text. The processor 1200 may determine an intent corresponding to the meaning of the inferred word by comparing the meaning of the inferred word with predefined intents provided in the first natural language understanding model.

허브 디바이스(1000)는 인텐트와 디바이스 간의 관련성을 판단하는 매칭 모델에 기초하여, 텍스트로부터 인식된 인텐트와 관련된 디바이스를 동작 수행 디바이스로 결정할 수 있다. 일 실시예에서, 매칭 모델은 룰 베이스 시스템(rule-based system)을 통한 학습을 통해 획득될 수 있지만, 이에 한정되지는 않는다. The hub device 1000 may determine a device related to the intent recognized from the text as an operation performing device based on a matching model that determines the relationship between the intent and the device. In one embodiment, the matching model may be obtained through learning through a rule-based system, but is not limited thereto.

일 실시예에서, 허브 디바이스(1000)는 인텐트에 매칭 모델을 적용함으로써, 인텐트와 복수의 디바이스 간의 관련성 정도를 나타내는 복수의 수치값을 획득하고, 획득된 복수의 수치값 중 최대값을 갖는 디바이스를 최종 동작 수행 디바이스로 결정할 수 있다. 예를 들어, 인텐트가 제1 디바이스 및 제2 디바이스와 각각 관련되는 경우, 허브 디바이스(1000)는 인텐트와 제1 디바이스 간의 관련성 정도를 나타내는 제1 수치값, 및 인텐트와 제2 디바이스 간의 관련성 정도를 나타내는 제2 수치값을 획득하고, 제1 수치값 및 제2 수치값 중 높은 수치값을 갖는 제1 디바이스를 동작 수행 디바이스로 결정할 수 있다. In one embodiment, the hub device 1000 obtains a plurality of numerical values representing the degree of relevance between the intent and the plurality of devices by applying a matching model to the intent, and has a maximum value among the obtained plurality of numerical values. The device may be determined as the device performing the final operation. For example, when the intent is related to the first device and the second device, respectively, the hub device 1000 includes a first numerical value indicating a degree of association between the intent and the first device, and between the intent and the second device. A second numerical value indicating a degree of relevance may be obtained, and a first device having a higher numerical value among the first numerical value and the second numerical value may be determined as the operation performing device.

허브 디바이스(1000)는 예를 들어, 룰 베이스 시스템(rule-based system)을 이용하여 인텐트와 동작 수행 디바이스 간의 매칭 모델을 학습할 수 있으나, 이에 한정되는 것은 아니다. 허브 디바이스(1000)가 이용하는 인공지능 모델은 예를 들어, 신경망 베이스 시스템(neural network-based system)(예: 컨볼루션 신경망(convolution neural network; CNN, 순환 신경망(recurrent neural network; RNN), SVM(Support Vector Machine), 선형 회귀(linear regression), 로지스틱 회귀(logistic regression), 나이브 베이즈 분류(Naive Bayes), 랜덤 포레스트(random forest), decision tree, 또는 k-nearest neighbor algorithm 일 수 있다. 또는, 전술한 것의 조합 또는 이와 다른 인공지능 모델일 수도 있다. The hub device 1000 may learn a matching model between an intent and an operation performing device using, for example, a rule-based system, but is not limited thereto. The artificial intelligence model used by the hub device 1000 is, for example, a neural network-based system (e.g., a convolution neural network; CNN, a recurrent neural network; RNN), and SVM ( Support Vector Machine), linear regression, logistic regression, Naive Bayes, random forest, decision tree, or k-nearest neighbor algorithm. It may be a combination of the above or other artificial intelligence models.

업데이트된 디바이스 판단 모델은, 허브 디바이스(1000)의 사용자 계정에 따라 새롭게 등록된 신규 디바이스와 기 등록된 복수의 디바이스 중에서 동작 수행 디바이스를 결정하도록 학습된 모델일 수 있다. 일 실시예에서, 업데이트된 디바이스 판단 모델은 신규 디바이스에 관한 텍스트를 분석하고, 텍스트의 분석 결과 인텐트를 획득하고, 획득된 인텐트에 기초하여 신규 디바이스를 동작 수행 디바이스로 결정할 수 있도록 학습 등을 통해 업데이트된 모델일 수 있다. The updated device determination model may be a model trained to determine an operation performing device from among a newly registered new device and a plurality of previously registered devices according to a user account of the hub device 1000. In one embodiment, the updated device determination model analyzes text on a new device, obtains an intent as a result of the text analysis, and learns to determine a new device as an operation performing device based on the obtained intent. It may be an updated model through.

업데이트된 디바이스 판단 모델은, 텍스트로부터 획득한 인텐트와 허브 디바이스(1000)의 사용자 계정과 동일한 사용자 계정으로 로그인함으로써 새롭게 등록된 신규 디바이스 및 기 등록된 복수의 디바이스 각각과 인텐트의 관련도를 나타내는 수치값을 분석하고, 복수의 디바이스 각각과의 관련도를 나타내는 수치값을 산출하고, 산출된 수치값 중 최대값을 갖는 디바이스를 동작 수행 디바이스로 결정할 수 있다. The updated device determination model represents the degree of relevance between the intent obtained from the text and the intent with each of a newly registered new device and a plurality of previously registered devices by logging in with the same user account as the user account of the hub device 1000. The numerical value may be analyzed, a numerical value indicating a degree of relevance to each of the plurality of devices may be calculated, and a device having a maximum value among the calculated numerical values may be determined as an operation performing device.

일 실시예에서, 허브 디바이스(1000)는 음성 비서 서버(2000, 도 1 참조)로부터 사용자 계정에 따라 새롭게 등록된 신규 디바이스 및 기 등록된 복수의 디바이스 각각에 관한 디바이스 정보를 수신할 수 있다. 디바이스 정보는 예를 들어, 신규 디바이스와 복수의 디바이스 각각의 식별 정보(예를 들어, 디바이스 id 정보), 디바이스 타입, 기능 수행 능력(capability), 위치 정보, 및 상태 정보 중 적어도 하나를 포함할 수 있다. 허브 디바이스(1000)는 수신된 디바이스 정보에 기초하여 신규 디바이스 및 복수의 디바이스 중 인텐트에 따라 동작을 수행할 디바이스를 결정할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 업데이트된 디바이스 판단 모델을 이용하여 텍스트를 분석함으로써, 신규 디바이스를 동작 수행 디바이스로 결정할 수 있다.In an embodiment, the hub device 1000 may receive device information about each of a newly registered new device and a plurality of previously registered devices according to a user account from the voice assistant server 2000 (refer to FIG. 1 ). The device information may include, for example, at least one of identification information (eg, device ID information), device type, function performance capability, location information, and status information of each of a new device and a plurality of devices. have. The hub device 1000 may determine a device to perform an operation according to an intent among a new device and a plurality of devices based on the received device information. In an embodiment, the hub device 1000 may determine a new device as an operation performing device by analyzing text using the updated device determination model.

단계 S860에서, 허브 디바이스(1000)는 내부 메모리에 저장된 신규 디바이스에 대응하는 기능 판단 모델에 텍스트의 적어도 일부를 제공한다. 도면에는 도시되지 않았지만, 단계 S860에서 허브 디바이스(1000)는 내부 메모리에 기 저장된 적어도 하나의 기능 판단 모델 중 신규 디바이스에 대응하는 기능 판단 모델을 선택할 수 있다. '신규 디바이스에 대응하는 기능 판단 모델'은, 동작 수행 디바이스로 결정된 신규 디바이스가 판단된 기능에 따른 동작을 수행하기 위한 세부 동작들, 세부 동작들 간의 연관 관계, 및 세부 동작들의 실행 순서에 관한 동작 정보를 획득하기 위하여 이용하는 모델을 의미한다. In step S860, the hub device 1000 provides at least a part of the text to the function determination model corresponding to the new device stored in the internal memory. Although not shown in the drawing, in step S860, the hub device 1000 may select a function determination model corresponding to the new device from among at least one function determination model previously stored in the internal memory. The'function determination model corresponding to the new device' is an operation regarding detailed operations for performing an operation according to the determined function by a new device determined as an operation performing device, a correlation relationship between the detailed operations, and an execution order of the detailed operations. It refers to the model used to acquire information.

허브 디바이스(1000)는 선택된 기능 판단 모델에 텍스트의 적어도 일부를 제공한다. 일 실시예에서, 허브 디바이스(1000)의 프로세서(1200, 도 2 참조)는 선택된 기능 판단 모델에 텍스트의 전체를 제공하지 않고, 텍스트의 일부만을 제공할 수 있다. 예를 들어, 신규 디바이스가 공기 청정기이고, 음성 입력으로부터 변환된 텍스트가 "공기 청정기에서 냄새 제거 모드 실행해줘~"인 경우, '공기 청정기에서'는 동작 수행 디바이스의 명칭을 특정한 것인바, 신규 디바이스에 대응하는 기능 판단 모델에는 불필요한 정보일 수 있다. 프로세서(1200)는 업데이트된 제1 자연어 이해 모델을 이용하여, 텍스트를 단어 또는 구 단위로 파싱(parse)하고, 디바이스의 명칭, 보통 명칭, 또는 설치 위치 등을 특정하고 있는 단어 또는 구를 인식하고, 텍스트 전체에서 인식된 단어 또는 구를 제외한 나머지 텍스트의 일부를 기능 판단 모델에 제공할 수 있다. The hub device 1000 provides at least a portion of the text to the selected function determination model. In an embodiment, the processor 1200 (refer to FIG. 2) of the hub device 1000 may not provide the entire text to the selected function determination model, but may provide only a part of the text. For example, if the new device is an air purifier, and the text converted from the voice input is "Execute the odor removal mode in the air purifier~",'in the air purifier' specifies the name of the device performing the operation. It may be unnecessary information in the function determination model corresponding to. The processor 1200 parses the text into words or phrases using the updated first natural language understanding model, recognizes a word or phrase specifying a device name, a common name, or an installation location, etc. , A part of the remaining text excluding words or phrases recognized in the entire text may be provided to the function determination model.

단계 S870에서, 허브 디바이스(1000)는 신규 디바이스에 대응하는 기능 판단 모델을 이용하여 텍스트의 적어도 일부를 해석함으로써, 신규 디바이스가 수행할 동작에 관한 동작 정보를 획득한다. 일 실시예에서, 허브 디바이스(1000)의 프로세서(1200, 도 2 참조)는 신규 디바이스에 대응하는 기능 판단 모델 내에 포함된 제2 자연어 이해 모델을 이용하여 텍스트의 적어도 일부를 분석할 수 있다. 프로세서(1200)는 제2 자연어 이해 모델을 이용하여 텍스트를 형태소, 단어, 또는 구 단위로 파싱하고, 문법적 및 의미적 분석을 통해 파싱된 형태소, 단어, 또는 구의 의미를 파악하고, 파악된 의미를 기 정의된 단어에 매칭시켜 인텐트 및 파라미터를 결정할 수 있다. 여기서,'파라미터'는 인텐트와 관련된 동작 수행 디바이스의 세부 동작 들을 결정하기 위한 변수(variable) 정보를 의미한다. 예를 들어, 신규 디바이스에 대응하는 기능 판단 모델에 제공된 텍스트가 "냄새 제거 모드 실행해줘~"인 경우, 인텐트는 '동작 모드 실행'이고, 파라미터는 동작할 모드인 '냄새 제거 모드'일 수 있다. In step S870, the hub device 1000 obtains operation information about an operation to be performed by the new device by analyzing at least a part of the text using a function determination model corresponding to the new device. In an embodiment, the processor 1200 (refer to FIG. 2) of the hub device 1000 may analyze at least a portion of the text using the second natural language understanding model included in the function determination model corresponding to the new device. The processor 1200 parses the text into morphemes, words, or phrases by using the second natural language understanding model, grasps the meaning of the parsed morphemes, words, or phrases through grammatical and semantic analysis, and identifies the sensed meaning. The intent and parameter may be determined by matching to a predefined word. Here, the'parameter' means variable information for determining detailed operations of the device performing the operation related to the intent. For example, if the text provided in the function determination model corresponding to the new device is "Execute the odor removal mode~", the intent is "Run operation mode", and the parameter may be the "Odor removal mode", which is the mode to be operated. have.

프로세서(1200, 도 2 참조)는 신규 디바이스에 대응하는 기능 판단 모델의 액션 플랜 관리 모듈을 이용하여, 인텐트 및 파라미터에 관련된 적어도 하나의 세부 동작에 관한 동작 정보를 획득할 수 있다. 액션 플랜 관리 모듈은, 동작 수행 디바이스로 결정된 신규 디바이스의 세부 동작들 및 세부 동작들 간의 관계에 관한 정보를 관리할 수 있다. 프로세서(1200)는 액션 플랜 관리 모듈을 이용함으로써, 인텐트 및 파라미터에 기초하여 신규 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 플래닝(planning)하고, 이를 통해 동작 정보를 획득할 수 있다. The processor 1200 (refer to FIG. 2) may obtain operation information regarding at least one detailed operation related to the intent and the parameter by using the action plan management module of the function determination model corresponding to the new device. The action plan management module may manage detailed operations of a new device determined as an operation performing device and information about a relationship between detailed operations. By using the action plan management module, the processor 1200 may plan detailed operations to be performed by the new device and an execution order of detailed operations based on intents and parameters, and obtain operation information through this. .

동작 정보는, 신규 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서에 관련된 정보일 수 있다. 동작 정보는 신규 디바이스가 수행할 세부 동작들, 각 세부 동작과 다른 세부 동작과의 연관 관계 및 실행 순서에 관련된 정보를 포함할 수 있다. 동작 정보는 예를 들어, 특정 동작의 수행을 위하여 신규 디바이스가 실행해야 할 기능들, 기능들의 실행 순서, 기능들을 실행하기 위하여 필요한 입력 값 및 기능들의 실행 결과로서 출력되는 출력 값을 포함할 수 있으나, 이에 한정되지 않는다.The operation information may be information related to detailed operations to be performed by the new device and an execution order of the detailed operations. The operation information may include detailed operations to be performed by the new device, a relationship between each detailed operation and another detailed operation, and information related to an execution order. The operation information may include, for example, functions to be executed by a new device to perform a specific operation, an execution order of functions, an input value required to execute the functions, and an output value output as a result of execution of the functions. , Is not limited thereto.

단계 S880에서, 허브 디바이스(1000)는 획득된 동작 정보에 기초하여 제어 명령을 획득한다. 제어 명령은, 신규 디바이스가 동작 정보 내에 포함된 세부 동작들을 수행할 수 있도록, 신규 디바이스에 의해 판독되고, 실행될 수 있는 명령어 또는 명령어의 집합을 의미한다. In step S880, the hub device 1000 acquires a control command based on the acquired operation information. The control command refers to a command or a set of commands that can be read and executed by a new device so that the new device can perform detailed operations included in the operation information.

도 9는 본 개시의 허브 디바이스(1000), 음성 비서 서버(2000), IoT 서버(3000), 및 신규 디바이스(4300) 각각의 동작 방법을 도시한 흐름도이다.9 is a flowchart illustrating an operation method of each of the hub device 1000, the voice assistant server 2000, the IoT server 3000, and the new device 4300 of the present disclosure.

도 9는 허브 디바이스(1000), 음성 비서 서버(2000), IoT 서버(3000), 및 동작 수행 디바이스(4000a)를 포함하는 멀티 디바이스 시스템 환경에서 각 주체의 동작들을 도시한다. 도 9를 참조하면, 허브 디바이스(1000)는 ASR 모듈(1310), NLG 모듈(1320), TTS 모듈(1330), 디바이스 판단 모델(1340), 리소스 트래킹 모듈(1350), 및 기능 판단 모델 관리 모듈(1360)을 포함할 수 있다. 도 9에 도시된 실시예에서, 허브 디바이스(1000)는 기능 판단 모델을 저장하지 않거나, 또는 신규 디바이스에 대응하는 기능 판단 모델을 저장하지 않을 수 있다. 9 illustrates operations of each subject in a multi-device system environment including a hub device 1000, a voice assistant server 2000, an IoT server 3000, and an operation performing device 4000a. 9, the hub device 1000 includes an ASR module 1310, an NLG module 1320, a TTS module 1330, a device determination model 1340, a resource tracking module 1350, and a function determination model management module. (1360) may be included. In the embodiment illustrated in FIG. 9, the hub device 1000 may not store a function determination model or may not store a function determination model corresponding to a new device.

도 9에 도시된 ASR 모듈(1310), NLG 모듈(1320), TTS 모듈(1330), 디바이스 판단 모델(1340), 리소스 트래킹 모듈(1350), 및 기능 판단 모델 관리 모듈(1360)은 도 2에 도시된 것들과 동일하므로, 중복되는 설명은 생략한다.An ASR module 1310, an NLG module 1320, a TTS module 1330, a device determination model 1340, a resource tracking module 1350, and a function determination model management module 1360 shown in FIG. 9 are shown in FIG. Since they are the same as those shown, redundant descriptions will be omitted.

음성 비서 서버(2000)는 디바이스 판단 모델(2330), 음성 비서 모델 업데이트 모듈(2340), 온 디바이스 모델 업데이트 모듈(2350), 및 복수의 기능 판단 모델(2362, 2364, 2368)을 저장할 수 있다. 예를 들어, 음성 비서 서버(2000)에 저장된 제1 기능 판단 모델(2362)은 에어컨의 기능을 판단하고, 판단된 기능에 관한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용되는 모델일 수 있다. 예를 들어, 제2 기능 판단 모델(2364)은 TV의 기능을 판단하고, 판단된 기능에 관한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용되는 모델이며, 신규 디바이스 기능 판단 모델(2368)은 신규 디바이스인 공기 청정기의 기능을 판단하고, 판단된 기능에 관한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용되는 모델일 수 있다. The voice assistant server 2000 may store a device determination model 2330, a voice assistant model update module 2340, an on-device model update module 2350, and a plurality of function determination models 2362, 2364, and 2368. For example, the first function determination model 2362 stored in the voice assistant server 2000 determines the function of the air conditioner, and obtains detailed operations related to the determined function and operation information regarding the relationship between the detailed operations. It may be the model used. For example, the second function determination model 2364 is a model used to determine a function of a TV and obtain detailed operations related to the determined function and operation information regarding a relationship between the detailed operations, and a new device function The determination model 2368 may be a model used to determine a function of an air purifier, which is a new device, and to obtain detailed operations related to the determined function and operation information regarding a relationship between the detailed operations.

도 9에 도시된 실시예에서, 동작 수행 디바이스는 신규 디바이스(4300)인 '공기 청정기'로 결정되고, 공기 청정기에 대응하는 신규 디바이스 기능 판단 모델(2368)은 음성 비서 서버(2000)에 저장되어 있을 수 있다. In the embodiment shown in FIG. 9, the operation performing device is determined as a'air purifier', which is a new device 4300, and a new device function determination model 2368 corresponding to the air purifier is stored in the voice assistant server 2000. There may be.

단계 S910에서 신규 디바이스(4300)는, 신규 디바이스의 디바이스 정보 및 사용자 계정 정보를 IoT 서버(3000)에 전송한다. 신규 디바이스(4300)는, 허브 디바이스(1000)의 사용자가 신규 디바이스(4300)를 취득하고, 신규 디바이스(4300)의 전원을 켠 이후 사용자 계정을 입력하여 로그인하는 경우, 로그인 과정에서 획득한 사용자 계정 정보 및 디바이스 정보를 IoT 서버(3000)에 전송할 수 있다. IoT 서버(3000)에 전송되는 디바이스 정보는, 예를 들어 신규 디바이스(4300)의 식별 정보(예를 들어, 신규 디바이스 id 정보), 신규 디바이스(4300)의 디바이스 타입, 신규 디바이스(4300)의 기능 수행 능력 (capability) 정보, 위치 정보, 및 상태 정보 중 적어도 하나를 포함할 수 있다.In step S910, the new device 4300 transmits device information and user account information of the new device to the IoT server 3000. The new device 4300 is, when a user of the hub device 1000 acquires the new device 4300 and logs in by entering a user account after turning on the power of the new device 4300, the user account acquired during the login process. Information and device information may be transmitted to the IoT server 3000. The device information transmitted to the IoT server 3000 is, for example, identification information of the new device 4300 (for example, new device id information), the device type of the new device 4300, and the function of the new device 4300. It may include at least one of performance information, location information, and status information.

단계 S920에서, IoT 서버(3000)는 수신된 사용자 계정에 신규 디바이스를 등록한다. IoT 서버(3000)는 복수의 디바이스를 사용자 계정에 따라 분류하여 등록할 수 있다. In step S920, the IoT server 3000 registers a new device in the received user account. The IoT server 3000 may classify and register a plurality of devices according to user accounts.

본 개시에서, 신규 디바이스(4300)는 허브 디바이스(1000)의 사용자와 동일한 사용자가 신규로 취득하고, 허브 디바이스(1000)와 동일한 사용자 계정으로 로그인함으로써, IoT 서버(3000)에 등록된 디바이스를 의미한다. In the present disclosure, the new device 4300 refers to a device registered in the IoT server 3000 by newly acquired by the same user as the user of the hub device 1000 and logging in with the same user account as the hub device 1000 do.

단계 S922에서, IoT 서버(3000)는 사용자 계정 정보 및 사용자 계정에 등록된 신규 디바이스의 디바이스 정보를 음성 비서 서버(2000)에 전송한다. In step S922, the IoT server 3000 transmits user account information and device information of a new device registered in the user account to the voice assistant server 2000.

단계 S930에서, IoT 서버(3000)는 신규 디바이스(4300)의 디바이스 정보를 허브 디바이스(1000)에 전송한다. IoT 서버(3000)는 수신된 사용자 계정에 대하여 기 등록된 허브 디바이스(1000)를 식별하고, 식별된 허브 디바이스(1000)에 신규 디바이스(4300)의 디바이스 정보를 전송할 수 있다. In step S930, the IoT server 3000 transmits device information of the new device 4300 to the hub device 1000. The IoT server 3000 may identify the hub device 1000 previously registered for the received user account and transmit device information of the new device 4300 to the identified hub device 1000.

단계 S932에서, 음성 비서 서버(2000)는 신규 디바이스(4300)의 디바이스 정보를 허브 디바이스(1000)에 전송한다. 음성 비서 서버(2000)는 IoT 서버(3000)로부터 수신한 사용자 계정에 대하여 기 등록된 허브 디바이스(1000)를 식별하고, 식별된 허브 디바이스(1000)에 신규 디바이스(4300)의 디바이스 정보를 전송할 수 있다. In step S932, the voice assistant server 2000 transmits device information of the new device 4300 to the hub device 1000. The voice assistant server 2000 may identify the hub device 1000 previously registered for the user account received from the IoT server 3000 and transmit device information of the new device 4300 to the identified hub device 1000. have.

단계 S940에서, 허브 디바이스(1000)는 디바이스 판단 모델(1340)의 업데이트가 필요한지 여부를 확인(identify)한다. 일 실시예에서, 허브 디바이스(1000)는 메모리(1300, 도 2 참조)에 저장된 디바이스 판단 모델(1340)이 사용자의 음성 입력으로부터 신규 디바이스(4300)를 동작 수행 디바이스로 결정할 수 있는지 여부를 확인할 수 있다. 예를 들어, 허브 디바이스(1000)는 디바이스 판단 모델(1340) 내에 포함된 제1 자연어 이해 모델(1342)이 사용자의 음성 입력으로부터 변환된 텍스트를 분석하여, 신규 디바이스(4300)의 기능과 관련된 인텐트를 획득할 수 있는 발화 데이터가 포함되어 있는지 여부를 확인할 수 있다. In step S940, the hub device 1000 identifies whether the device determination model 1340 needs to be updated. In one embodiment, the hub device 1000 may check whether the device determination model 1340 stored in the memory 1300 (refer to FIG. 2) can determine the new device 4300 as an operation performing device from a user's voice input. have. For example, the hub device 1000 analyzes the text converted from the user's voice input by the first natural language understanding model 1342 included in the device determination model 1340, It is possible to check whether utterance data for obtaining a tent is included.

확인 결과, 신규 디바이스(4300)에 관련된 디바이스 판단 모델(1340)의 업데이트가 필요하지 않은 경우(단계 S944), 허브 디바이스(1000)는 기존 디바이스 판단 모델(1340)을 이용하여 동작 수행 디바이스를 결정한다. 단계 S944에서, 기존 디바이스 판단 모델(1340)은 허브 디바이스(1000)가 신규 디바이스(4300)의 디바이스 정보를 수신하기 이전에 메모리(1300, 도 2 참조)에 기 저장되어 있는 모델로서, 별도의 업데이트 과정이 없이도 텍스트로부터 신규 디바이스(4300)와 관련된 인텐트를 획득하고, 획득된 인텐트에 기초하여 신규 디바이스(4300)를 동작 수행 디바이스로 결정할 수 있다. As a result of the check, if the update of the device determination model 1340 related to the new device 4300 is not required (step S944), the hub device 1000 determines the device performing the operation using the existing device determination model 1340. . In step S944, the existing device determination model 1340 is a model previously stored in the memory 1300 (refer to FIG. 2) before the hub device 1000 receives device information of the new device 4300, and is separately updated. Without a process, an intent related to the new device 4300 may be obtained from the text, and the new device 4300 may be determined as an operation performing device based on the acquired intent.

확인 결과, 신규 디바이스(4300)에 관련된 디바이스 판단 모델(1340)의 업데이트가 필요한 경우(단계 S942), 허브 디바이스(1000)는 사용자 계정 정보, 허브 디바이스의 식별 정보, 및 디바이스 판단 모델의 업데이트를 요청하는 쿼리(query)를 음성 비서 서버(2000)에 전송한다. As a result of the confirmation, when the device determination model 1340 related to the new device 4300 needs to be updated (step S942), the hub device 1000 requests update of the user account information, the identification information of the hub device, and the device determination model. The requested query is transmitted to the voice assistant server 2000.

단계 S950에서, 음성 비서 서버(2000)는 신규 디바이스의 디바이스 정보를 이용하여, 디바이스 판단 모델(2330)을 업데이트한다. 음성 비서 서버(2000)는 음성 비서 모델 업데이트 모듈(2340)을 이용하여, 수신된 신규 디바이스(4300)의 디바이스 정보에 기초하여 디바이스 판단 모델(2330)이 텍스트로부터 인텐트를 해석하고, 해석 결과 인텐트와 관련된 동작 수행 디바이스로서 신규 디바이스(4300)를 결정할 수 있도록 학습 등을 통해 디바이스 판단 모델(2330)을 새로운 모델로 업데이트할 수 있다. 일 실시예에서, 음성 비서 모델 업데이트 모듈(2340)은 디바이스 판단 모델(2330)의 제1 자연어 이해 모델이 신규 디바이스(4300)와 관련된 텍스트를 해석하도록 학습 등을 통해 제1 자연어 이해 모델을 새로운 모델로 업데이트할 수 있다. In step S950, the voice assistant server 2000 updates the device determination model 2330 by using the device information of the new device. The voice assistant server 2000 uses the voice assistant model update module 2340, and the device determination model 2330 analyzes the intent from the text based on the received device information of the new device 4300, and the analysis result is The device determination model 2330 may be updated to a new model through learning or the like so as to determine a new device 4300 as a device for performing an operation related to the tent. In one embodiment, the voice assistant model update module 2340 is a new model of the first natural language understanding model through learning so that the first natural language understanding model of the device determination model 2330 interprets text related to the new device 4300. Can be updated with

단계 S952에서, 음성 비서 서버(2000)는 업데이트된 디바이스 판단 모델(2330)을 허브 디바이스(1000)에 제공한다. 일 실시예에서, 음성 비서 서버(2000)는 업데이트된 디바이스 판단 모델(2330)을 구성하는 적어도 하나의 파일을 허브 디바이스(1000)에 전송할 수 있다.In step S952, the voice assistant server 2000 provides the updated device determination model 2330 to the hub device 1000. In an embodiment, the voice assistant server 2000 may transmit at least one file constituting the updated device determination model 2330 to the hub device 1000.

단계 S960에서, 허브 디바이스(1000)는 업데이트된 디바이스 판단 모델(2330)을 메모리(1300, 도 2 참조)에 저장한다. 일 실시예에서, 음성 비서 서버(2000)로부터 수신한 업데이트된 디바이스 판단 모델(2330)은 허브 디바이스(1000)에 기 저장된 디바이스 판단 모델(1330)을 덮어쓰는 방식(overwrite)으로 대체(replace)될 수 있다. In step S960, the hub device 1000 stores the updated device determination model 2330 in the memory 1300 (refer to FIG. 2). In one embodiment, the updated device determination model 2330 received from the voice assistant server 2000 may be replaced by overwriting the device determination model 1330 previously stored in the hub device 1000. I can.

단계 S970에서, 음성 비서 서버(2000)는 신규 디바이스(4300)의 디바이스 정보를 이용하여, 신규 디바이스(4300)에 대응하는 기능 판단 모델 정보를 획득한다. 일 실시예에서, 음성 비서 서버(2000)는 단계 S922에서 IoT 서버(3000)로부터 수신한 신규 디바이스(4300)의 디바이스 정보를 이용하여, 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 획득하고, 획득된 기능 판단 모델(2368)을 메모리(2300, 도 3 참조) 내의 기존 기능 판단 모델(2362, 2364)에 추가하여 저장할 수 있다.In step S970, the voice assistant server 2000 obtains function determination model information corresponding to the new device 4300 by using the device information of the new device 4300. In one embodiment, the voice assistant server 2000 uses the device information of the new device 4300 received from the IoT server 3000 in step S922, and uses the function determination model 2368 corresponding to the new device 4300. The acquired function determination model 2368 may be added to and stored in the existing function determination models 2362 and 2364 in the memory 2300 (refer to FIG. 3).

단계 S972에서, 음성 비서 서버(2000)는 신규 디바이스(4300)에 대응하는 기능 판단 모델의 정보를 허브 디바이스(1000)에 제공한다. 기능 판단 모델의 정보는, 예를 들어 기능 판단 모델(2368)의 용량 정보, 기능 판단 모델(2368)을 판독하기 위하여 점유되는 RAM 점유율 정보, 및 허브 디바이스(1000)의 프로세서(1200, 도 2 참조)가 기능 판단 모델(2368)을 판독하여 기능에 따른 세부 동작들 및 세부 동작들의 순서를 통해 동작 정보를 획득하기 위하여 소요되는 가상의 처리 시간(simulated processing time)에 관한 정보 중 적어도 하나를 포함할 수 있다.In step S972, the voice assistant server 2000 provides information on a function determination model corresponding to the new device 4300 to the hub device 1000. For information on the function determination model, see, for example, capacity information of the function determination model 2368, information on the occupied RAM occupied for reading the function determination model 2368, and the processor 1200 of the hub device 1000, FIG. ) Reads the function determination model 2368 to include at least one of information on the simulated processing time required to obtain operation information through detailed operations according to the function and the order of detailed operations. I can.

단계 S980에서, 허브 디바이스(1000)는 신규 디바이스(4300)에 대응하는 기능 판단 모델의 정보로부터 기능 판단 모델(2368)의 용량을 확인(identify)한다. 일 실시예에서, 허브 디바이스(1000)는 음성 비서 서버(2000)로부터 수신한 기능 판단 모델의 정보로부터 기능 판단 모델(2368)을 구성하는 적어도 하나의 파일의 용량을 확인할 수 있다. 그러나, 이에 한정되는 것은 아니고, 허브 디바이스(1000)는 기능 판단 모델의 정보로부터 기능 판단 모델(2368)을 판독하기 위하여 점유되는 RAM 점유율 정보 및 허브 디바이스(1000)의 프로세서(1200, 도 2 참조)가 기능 판단 모델(2368)을 판독하는 가상의 처리 시간에 관한 정보를 확인할 수도 있다. In step S980, the hub device 1000 identifies the capacity of the function determination model 2368 from the information of the function determination model corresponding to the new device 4300. In an embodiment, the hub device 1000 may check the capacity of at least one file constituting the function determination model 2368 from information on the function determination model received from the voice assistant server 2000. However, the present invention is not limited thereto, and the hub device 1000 includes information on occupied RAM occupied in order to read the function determination model 2368 from the information of the function determination model and the processor 1200 of the hub device 1000 (refer to FIG. 2 ). Information on the virtual processing time for reading the function determination model 2368 may be checked.

단계 S990에서, 허브 디바이스(1000)는 수신된 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)의 정보에 기초하여, 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 허브 디바이스(1000) 내의 메모리(1300, 도 2 참조)에 저장할 지 여부를 결정한다. 단계 S990은 도 7에 도시된 단계 S650(단계 S710 내지 단계 S740을 포함)와 동일하므로, 중복되는 설명은 생략한다.In step S990, based on the received information of the function determination model 2368 corresponding to the new device 4300, the hub device 1000 determines the function determination model 2368 corresponding to the new device 4300 to the hub device ( 1000) in the memory (1300, see FIG. 2) is determined whether or not to store. Since step S990 is the same as step S650 (including steps S710 to S740) shown in FIG. 7, a redundant description will be omitted.

도 10은 본 개시의 허브 디바이스(1000) 및 신규 디바이스(4300)의 동작 방법을 도시한 흐름도이다.10 is a flowchart illustrating a method of operating the hub device 1000 and the new device 4300 of the present disclosure.

도 10은 도 9에 도시된 ⓐ단계 이후에 허브 디바이스(1000) 및 신규 디바이스(4300)를 포함하는 멀티 디바이스 시스템 환경에서 각 주체의 동작들을 나타내는 흐름도이다. 도 9에 도시된 ⓐ단계는 허브 디바이스(1000)가 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 허브 디바이스에 저장하는 것으로 결정한 상태를 나타낸다. 10 is a flowchart illustrating operations of each subject in a multi-device system environment including the hub device 1000 and the new device 4300 after step ⓐ shown in FIG. 9. Step ⓐ shown in FIG. 9 represents a state in which the hub device 1000 determines to store the function determination model 2368 corresponding to the new device 4300 in the hub device.

단계 S1010에서, 허브 디바이스(1000)는 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 음성 비서 서버(2000)로부터 다운로드(download) 받고, 내부 메모리(1300, 도 2 참조)에 저장할 수 있다. 도 10을 참조하면, 허브 디바이스(1000)는 신규 디바이스 기능 판단 모델(1378)을 포함할 수 있다. 단계 S1010의 일 실시예에서, 허브 디바이스(1000)는 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 전송해줄 것을 요청하는 쿼리(query)를 음성 비서 서버(2000)에 전송하고, 음성 비서 서버(2000)로부터 기능 판단 모델(2368)을 다운로드하여 메모리(1300) 내에 저장할 수 있다. 허브 디바이스(1000)에 포함된 신규 디바이스 기능 판단 모델(1378)은 음성 비서 서버(2000)로부터 수신한 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)과 동일할 수 있다. In step S1010, the hub device 1000 may download the function determination model 2368 corresponding to the new device 4300 from the voice assistant server 2000 and store it in the internal memory 1300 (see FIG. 2). have. Referring to FIG. 10, the hub device 1000 may include a new device function determination model 1378. In an embodiment of step S1010, the hub device 1000 transmits a query requesting to transmit the function determination model 2368 corresponding to the new device 4300 to the voice assistant server 2000, and The function determination model 2368 may be downloaded from the secretary server 2000 and stored in the memory 1300. The new device function determination model 1378 included in the hub device 1000 may be the same as the function determination model 2368 corresponding to the new device 4300 received from the voice assistant server 2000.

단계 S1020에서, 허브 디바이스(1000)는 사용자의 음성 입력을 수신한다.In step S1020, the hub device 1000 receives a user's voice input.

단계 S1030에서, 허브 디바이스(1000)는 ASR을 수행하여, 수신된 음성 입력을 텍스트로 변환한다. In step S1030, the hub device 1000 converts the received voice input into text by performing ASR.

단계 S1040에서, 허브 디바이스(1000)는 업데이트된 디바이스 판단 모델(1330)을 이용하여, 텍스트를 분석하고, 분석된 텍스트와 관련된 동작 수행 디바이스로서 신규 디바이스(4300)를 결정한다.In step S1040, the hub device 1000 analyzes the text using the updated device determination model 1330, and determines a new device 4300 as a device for performing an operation related to the analyzed text.

단계 S1050에서, 허브 디바이스(1000)는 내부 메모리(1300)에 저장된 신규 디바이스 기능 판단 모델(1378)에 텍스트의 적어도 일부를 제공한다. In operation S1050, the hub device 1000 provides at least a part of the text to the new device function determination model 1378 stored in the internal memory 1300.

단계 S1060에서, 허브 디바이스(1000)는 신규 디바이스 기능 판단 모델(1378)을 이용하여 텍스트의 적어도 일부를 해석함으로써, 신규 디바이스(4300)가 수행할 동작에 관한 동작 정보를 획득한다.In step S1060, the hub device 1000 obtains operation information regarding an operation to be performed by the new device 4300 by analyzing at least a part of the text using the new device function determination model 1378.

단계 S1020 내지 단계 S1060은 도 8에 도시된 단계 S830 내지 단계 S870과 동일하므로, 중복되는 설명은 생략한다.Steps S1020 to S1060 are the same as steps S830 to S870 shown in FIG. 8, and thus redundant descriptions will be omitted.

단계 S1062에서, 허브 디바이스(1000)는 신규 디바이스(4300)의 식별 정보를 이용하여, 동작 정보를 전송한다. 일 실시예에서, 허브 디바이스(1000)는 신규 디바이스(4300)의 식별 정보, 예를 들어 신규 디바이스(4300)의 id 정보를 이용하여 신규 디바이스(4300)를 식별하고, 식별된 신규 디바이스(4300)에 동작 정보를 전송할 수 있다.In step S1062, the hub device 1000 transmits operation information by using the identification information of the new device 4300. In one embodiment, the hub device 1000 identifies the new device 4300 using identification information of the new device 4300, for example, the ID information of the new device 4300, and the identified new device 4300 Operation information can be transmitted to.

단계 S1070에서, 신규 디바이스(4300)는 획득한 동작 정보에 기초하여 제어 명령을 획득한다. 단계 S1070에서 신규 디바이스(4300)는 동작 정보를 제어 명령으로 변환하는 제어 명령 변환 모듈을 자체적으로 포함하고 있을 수 있다. 신규 디바이스(4300)는 제어 명령 변환 모듈을 이용하여 동작 정보를 신규 디바이스(4300)가 판독하고, 실행할 수 있는 명령어 또는 명령어의 집합으로 변환할 수 있다. In step S1070, the new device 4300 acquires a control command based on the acquired operation information. In step S1070, the new device 4300 may itself include a control command conversion module that converts operation information into a control command. The new device 4300 may use the control command conversion module to convert the operation information into a command or a set of commands that the new device 4300 can read and execute.

단계 S1080에서, 신규 디바이스(4300)는 획득된 제어 명령에 따라, 동작을 실행한다. In step S1080, the new device 4300 executes an operation according to the acquired control command.

일 실시예에서, 신규 디바이스(4300)는 동작을 실행한 이후, 동작 실행 결과에 관한 정보를 허브 디바이스(1000)에 전송할 수 있다. 그러나, 이에 한정되는 것은 아니고, 신규 디바이스(4300)는 동작 실행 결과에 관한 정보를 IoT 서버(3000, 도 1 참조)에 전송할 수도 있다.In an embodiment, after executing the operation, the new device 4300 may transmit information about the operation execution result to the hub device 1000. However, the present invention is not limited thereto, and the new device 4300 may transmit information on the result of the operation execution to the IoT server 3000 (refer to FIG. 1 ).

도 11은 본 개시의 허브 디바이스(1000), 음성 비서 서버(2000), IoT 서버(3000), 및 신규 디바이스(4300) 각각의 동작 방법을 도시한 흐름도이다.11 is a flowchart illustrating an operation method of each of the hub device 1000, the voice assistant server 2000, the IoT server 3000, and the new device 4300 of the present disclosure.

도 11은 도 9에 도시된 ⓑ단계 이후에 허브 디바이스(1000), 음성 비서 서버(2000), IoT 서버(3000), 및 신규 디바이스(4300)를 포함하는 멀티 디바이스 시스템 환경에서 각 주체의 동작들을 나타내는 흐름도이다. 도 9에 도시된 ⓑ단계는 허브 디바이스(1000)가 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 허브 디바이스에 저장하지 않는 것으로 결정한 상태를 나타낸다. 도 11에 도시된 허브 디바이스(1000)를 참조하면, 도 10에 도시된 허브 디바이스(1000)와는 달리 신규 디바이스 기능 판단 모델(1378)이 포함되어 있지 않는데, 이는 ⓑ단계에서 신규 디바이스(4300)에 대응하는 기능 판단 모델을 메모리(1300, 도 2 참조)에 저장하지 않기로 결정하였기 때문이다. 11 illustrates operations of each subject in a multi-device system environment including a hub device 1000, a voice assistant server 2000, an IoT server 3000, and a new device 4300 after step ⓑ shown in FIG. 9. It is a flow chart showing. Step ⓑ shown in FIG. 9 represents a state in which the hub device 1000 determines that the function determination model 2368 corresponding to the new device 4300 is not stored in the hub device. Referring to the hub device 1000 illustrated in FIG. 11, unlike the hub device 1000 illustrated in FIG. 10, the new device function determination model 1378 is not included, which is not included in the new device 4300 in step ⓑ. This is because it is decided not to store the corresponding function determination model in the memory 1300 (refer to FIG. 2).

단계 S1110에서, 허브 디바이스(1000)는 음성 비서 서버(2000)에, 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)의 액세스(access) 정보를 요청하는 쿼리(query)를 전송한다. 액세스 정보는 예를 들어, 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)이 저장된 음성 비서 서버(2000)의 식별 정보(예를 들어, 서버 id), 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 음성 비서 서버(2000) 내의 기능 판단 모델(2368)에 접근할 수 있는 API 정보(Application Programming Interface), 기능 판단 모델(2368)의 사용 언어 및 대응하는 신규 디바이스(4300)의 식별 정보 중 적어도 하나를 포함할 수 있다. 단계 S1110의 일 실시예에서 허브 디바이스(1000)는, 허브 디바이스(1000)의 식별 정보 및 사용자 계정 정보를 음성 비서 서버(2000)에 전송할 수도 있다.In step S1110, the hub device 1000 transmits a query requesting access information of the function determination model 2368 corresponding to the new device 4300 to the voice assistant server 2000. The access information includes, for example, identification information (eg, server id), location information, IP address information (IP address) of the voice assistant server 2000 in which the function determination model 2368 corresponding to the new device 4300 is stored. ), MAC address, API information for accessing the function determination model 2368 in the voice assistant server 2000 (Application Programming Interface), the language used for the function determination model 2368, and a corresponding new device ( 4300) may include at least one of the identification information. In an embodiment of step S1110, the hub device 1000 may transmit identification information and user account information of the hub device 1000 to the voice assistant server 2000.

단계 S1120에서, 음성 비서 서버(2000)는 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)에 대한 액세스 정보를 획득한다. In step S1120, the voice assistant server 2000 acquires access information for the function determination model 2368 corresponding to the new device 4300.

단계 S1122에서, 음성 비서 서버(2000)는 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)의 액세스 정보를 허브 디바이스(1000)에 전송한다. In step S1122, the voice assistant server 2000 transmits the access information of the function determination model 2368 corresponding to the new device 4300 to the hub device 1000.

단계 S1130에서, 허브 디바이스(1000)는 수신한 액세스 정보를 내부 메모리(1300, 도 2 참조)에 저장한다.In step S1130, the hub device 1000 stores the received access information in the internal memory 1300 (refer to FIG. 2).

단계 S1140에서, 허브 디바이스(1000)는 사용자의 음성 입력을 수신한다.In step S1140, the hub device 1000 receives a user's voice input.

단계 S1150에서, 허브 디바이스(1000)는 ASR을 수행하여, 수신된 음성 입력을 텍스트로 변환한다.In step S1150, the hub device 1000 converts the received voice input into text by performing ASR.

단계 S1160에서, 업데이트된 디바이스 판단 모델(1330)을 이용하여, 텍스트를 분석하고, 분석된 텍스트에 대응하는 동작 수행 디바이스로서, 신규 디바이스(4300)를 결정한다. In step S1160, the text is analyzed using the updated device determination model 1330, and a new device 4300 is determined as a device for performing an operation corresponding to the analyzed text.

단계 S1140 내지 단계 S1160은 도 8에 도시된 단계 S830 내지 단계 S850과 동일하므로, 중복되는 설명은 생략한다.Steps S1140 to S1160 are the same as steps S830 to S850 shown in FIG. 8, and therefore, a duplicate description will be omitted.

단계 S1162에서, 허브 디바이스(1000)는 액세스 정보에 기초하여, 텍스트의 적어도 일부를 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)에 전송한다. 일 실시예에서, 허브 디바이스(1000)는 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)이 저장된 음성 비서 서버(2000)의 식별 정보(예를 들어, 서버 id), 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 음성 비서 서버(2000) 내의 기능 판단 모델(2368)에 접근할 수 있는 API 정보(Application Programming Interface), 기능 판단 모델(2368)의 사용 언어 및 대응하는 신규 디바이스(4300)의 식별 정보 중 적어도 하나에 기초하여 기능 판단 모델(2368)이 저장된 음성 비서 서버(2000)를 식별하고, 음성 비서 서버(2000)의 기능 판단 모델(2368)에 텍스트의 적어도 일부를 전송할 수 있다.In step S1162, the hub device 1000 transmits at least a part of the text to the function determination model 2368 corresponding to the new device 4300 based on the access information. In one embodiment, the hub device 1000 includes identification information (eg, server ID), location information, and IP address of the voice assistant server 2000 in which the function determination model 2368 corresponding to the new device 4300 is stored. Information (IP address), MAC address (MAC address), API information (Application Programming Interface) for accessing the function determination model 2368 in the voice assistant server 2000, language and correspondence of the function determination model 2368 The voice assistant server 2000 in which the function determination model 2368 is stored is identified based on at least one of the identification information of the new device 4300 to be performed, and at least the text is added to the function determination model 2368 of the voice assistant server 2000. Some can be transmitted.

단계 S1170에서, 음성 비서 서버(2000)는 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 이용하여 텍스트의 적어도 일부를 해석함으로써, 신규 디바이스(4300)가 수행할 동작에 관한 동작 정보를 획득한다. 일 실시예에서, 음성 비서 서버(2000)는 복수의 기능 판단 모델(2362, 2364, 2368) 중 신규 디바이스(4300)에 대응하는 기능 판단 모델(2368)을 선택하고, 선택된 기능 판단 모델(2368)의 자연어 이해 모델(2368a)을 이용하여 텍스트를 해석하고, 분석 결과에 기초하여 인텐트(intent)를 결정한다. 음성 비서 서버(2000)는 신규 디바이스 기능 판단 모델(2368)의 자연어 이해 모델(2368a)를 이용하여, 허브 디바이스(1000)로부터 수신한 텍스트의 적어도 일부를 분석할 수 있다. 자연어 이해 모델(2368a)은 신규 디바이스(4300)와 관련된 텍스트를 해석하기 위하여 학습된 인공지능 모델로서, 사용자가 의도하는 동작과 관련된 인텐트 및 파라미터들을 결정하도록 학습된 모델일 수 있다. 자연어 이해 모델(2368a)은 텍스트가 입력되면 신규 디바이스(4300)의 타입과 관련된 기능을 결정하도록 학습된 모델일 수 있다. In step S1170, the voice assistant server 2000 analyzes at least a part of the text using the function determination model 2368 corresponding to the new device 4300, so that the new device 4300 receives operation information about the operation to be performed. Acquire. In one embodiment, the voice assistant server 2000 selects a function determination model 2368 corresponding to the new device 4300 from among a plurality of function determination models 2362, 2364, 2368, and the selected function determination model 2368 The text is analyzed using the natural language understanding model 2368a of, and an intent is determined based on the analysis result. The voice assistant server 2000 may analyze at least a part of the text received from the hub device 1000 by using the natural language understanding model 2368a of the new device function determination model 2368. The natural language understanding model 2368a is an artificial intelligence model trained to analyze text related to the new device 4300, and may be a model trained to determine intents and parameters related to an operation intended by the user. The natural language understanding model 2368a may be a model trained to determine a function related to the type of the new device 4300 when text is input.

일 실시예에서, 음성 비서 서버(2000)는 자연어 이해 모델(2368a)을 이용하여 텍스트의 적어도 일부를 단어 또는 구 단위로 파싱(parse)하고, 파싱된 형태소, 단어, 또는 구의 언어적 특징(예: 문법적 요소)을 이용하여 파싱된 텍스트로부터 추출된 단어의 의미를 추론하고, 추론된 의미를 기 정의된 인텐트 및 파라미터에 매칭시켜 텍스트로부터 인텐트 및 파라미터를 획득할 수 있다. 일 실시예에서, 음성 비서 서버(2000)는 텍스트의 적어도 일부로부터 인텐트만을 결정할 수도 있다.In one embodiment, the voice assistant server 2000 parses at least a part of the text into words or phrases using the natural language understanding model 2368a, and the parsed morphemes, words, or phrases have linguistic features (e.g. : A grammatical factor) can be used to infer the meaning of a word extracted from the parsed text, and match the inferred meaning to a predefined intent and parameter to obtain an intent and a parameter from the text. In one embodiment, the voice assistant server 2000 may determine only the intent from at least a portion of the text.

음성 비서 서버(2000)는 인텐트에 기초하여 신규 디바이스(4300)가 수행할 동작에 관한 동작 정보를 획득한다. 일 실시예에서, 음성 비서 서버(2000)는 신규 디바이스 기능 판단 모델(2368)의 액션 플랜 관리 모듈(2368b)를 이용하여, 인텐트 및 파라미터에 기초하여 신규 디바이스(4300)가 수행할 동작 정보를 플래닝(planning)한다. 액션 플랜 관리 모듈(2368b)은 인텐트 및 파라미터에 기초하여 신규 디바이스(4300)가 수행할 동작들을 해석할 수 있다. 액션 플랜 관리 모듈(2368b)은 기 저장된 디바이스의 동작들 중 해석된 동작들과 관련된 세부 동작들을 선택하고, 선택된 세부 동작들의 실행 순서를 플래닝할 수 있다. 액션 플랜 관리 모듈(2368b)은 플래닝 결과를 이용하여 신규 디바이스(4300)가 수행할 세부 동작에 관한 동작 정보를 획득할 수 있다. The voice assistant server 2000 acquires operation information on an operation to be performed by the new device 4300 based on the intent. In one embodiment, the voice assistant server 2000 uses the action plan management module 2368b of the new device function determination model 2368, based on the intent and the parameter, the operation information to be performed by the new device 4300. Plan. The action plan management module 2368b may analyze operations to be performed by the new device 4300 based on the intent and parameters. The action plan management module 2368b may select detailed operations related to interpreted operations among previously stored device operations, and may plan an execution order of the selected detailed operations. The action plan management module 2368b may acquire operation information regarding a detailed operation to be performed by the new device 4300 by using the planning result.

단계 S1172에서, 음성 비서 서버(2000)는 획득된 동작 정보 및 신규 디바이스(4300)의 식별 정보를 IoT 서버(3000)에 전송한다. In step S1172, the voice assistant server 2000 transmits the acquired operation information and identification information of the new device 4300 to the IoT server 3000.

단계 S1180에서, IoT 서버(3000)는 신규 디바이스(4300)의 식별 정보 및 수신된 동작 정보에 기초하여 제어 명령(control command)을 획득한다. IoT 서버(3000)에는 복수의 디바이스에 대한 제어 명령 및 동작 정보가 저장된 데이터베이스를 포함할 수 있다. 일 실시예에서, IoT 서버(3000)는 데이터베이스(DB)에 기 저장된 복수의 디바이스에 관한 제어 명령들 중에서, 신규 디바이스(4300)의 식별 정보에 기초하여 신규 디바이스(4300)의 세부 동작들을 제어하기 위한 제어 명령을 선택할 수 있다. In step S1180, the IoT server 3000 acquires a control command based on the identification information of the new device 4300 and the received operation information. The IoT server 3000 may include a database in which control commands and operation information for a plurality of devices are stored. In one embodiment, the IoT server 3000 controls detailed operations of the new device 4300 based on identification information of the new device 4300 from among control commands for a plurality of devices previously stored in the database DB. You can select a control command for.

단계 S1182에서, IoT 서버(3000)는 신규 디바이스(4300)의 식별 정보를 이용하여, 신규 디바이스(4300)에 제어 명령을 전송한다. In step S1182, the IoT server 3000 transmits a control command to the new device 4300 by using the identification information of the new device 4300.

단계 S1190에서, 신규 디바이스(4300)는 수신된 제어 명령에 따라, 제어 명령에 대응하는 동작들을 실행한다. In step S1190, the new device 4300 executes operations corresponding to the control command according to the received control command.

일 실시예에서, 신규 디바이스(4300)는 동작을 실행한 이후, 동작 실행 결과에 관한 정보를 IoT 서버(3000)에 전송할 수 있다. In an embodiment, after executing the operation, the new device 4300 may transmit information about the operation execution result to the IoT server 3000.

도 12a는 본 개시의 허브 디바이스 및 리스너 디바이스의 동작을 도시한 개념도이다.12A is a conceptual diagram illustrating an operation of a hub device and a listener device according to the present disclosure.

도 12a에 도시된 화살표는 제1 디바이스(4100a)와 제2 디바이스(4200a) 간의 음성 신호 및 텍스트를 포함하는 데이터의 이동, 전송, 및 수신을 표시한다. 원문자 안의 숫자는 각 동작이 수행되는 순서를 의미한다. Arrows shown in FIG. 12A indicate movement, transmission, and reception of data including text and voice signals between the first device 4100a and the second device 4200a. The numbers in the original letters indicate the order in which each action is performed.

제1 디바이스(4100a) 및 제2 디바이스(4200a)는 유선 통신 또는 무선 통신 방식으로 상호 연결되고, 데이터 통신을 수행할 수 있다. 일 실시예에서, 제1 디바이스(4100a)와 제2 디바이스(4200a)는 상호 간 통신망을 통해 직접 연결될 수 있지만, 이에 한정되는 것은 아니다. 일 실시예에서, 제1 디바이스(4100a) 및 제2 디바이스(4200a)는 음성 비서 서버(2000, 도 3 참조)와 연결될 수 있으며, 음성 비서 서버(2000)를 통해 서로 연결될 수 있다. The first device 4100a and the second device 4200a may be interconnected through wired communication or wireless communication, and may perform data communication. In one embodiment, the first device 4100a and the second device 4200a may be directly connected to each other through a communication network, but are not limited thereto. In an embodiment, the first device 4100a and the second device 4200a may be connected to the voice assistant server 2000 (refer to FIG. 3 ), and may be connected to each other through the voice assistant server 2000.

도 12a를 참조하면, 제1 디바이스(4100a)는 사용자로부터 음성 입력을 수신하는 리스너 디바이스(listener device)이고, 제2 디바이스(4200b)는 음성 입력을 해석함으로써, 동작 수행 디바이스를 결정하고, 결정된 디바이스가 동작을 수행하도록 제어하는 허브 디바이스(hub device)일 수 있다. 예를 들어, 제1 디바이스(4100a)는 에어컨이고, 제2 디바이스(4200a)는 TV일 수 있다. Referring to FIG. 12A, a first device 4100a is a listener device that receives a voice input from a user, and the second device 4200b determines a device for performing an operation by analyzing the voice input, and the determined device It may be a hub device that controls to perform an operation. For example, the first device 4100a may be an air conditioner, and the second device 4200a may be a TV.

제1 디바이스(4100a)는 발화로 구성된 음성 입력을 사용자로부터 수신하는 리스너 디바이스일 수 있다. 리스너 디바이스는 사용자로부터 음성 입력을 수신하기만 하는 디바이스일 수 있으나, 이에 한정되는 것은 아니다. 일 실시예에서, 리스너 디바이스는, 허브 디바이스(도 12a에 도시된 실시예에서, 제2 디바이스(4200a))로부터 제어 명령을 받아 특정 기능에 관한 동작을 수행하는 동작 수행 디바이스일 수 있다. The first device 4100a may be a listener device that receives a voice input composed of speech from a user. The listener device may be a device that only receives a voice input from a user, but is not limited thereto. In one embodiment, the listener device may be an operation performing device that receives a control command from the hub device (in the embodiment shown in FIG. 12A, the second device 4200a) and performs an operation related to a specific function.

일 실시예에서 리스너 디바이스는, 리스너 디바이스가 수행하는 기능과 관련된 음성 입력을 사용자로부터 수신할 수 있다. 예를 들어, 제1 디바이스(4100a)는 사용자로부터 “에어컨 온도를 20℃로 내려줘”와 같은 음성 입력을 수신한다 (단계 ①).In an embodiment, the listener device may receive a voice input related to a function performed by the listener device from a user. For example, the first device 4100a receives a voice input such as “Take the air conditioner temperature down to 20° C.” from the user (step ①).

일 실시예에서, 제1 디바이스(4100a)는 마이크를 통해 수신된 소리를 음향 신호로 변환하고, 음향 신호로부터 노이즈(예를 들어, 비음성 성분)를 제거하여 음성 신호를 획득할 수 있다. In an embodiment, the first device 4100a may obtain a speech signal by converting sound received through a microphone into an acoustic signal and removing noise (eg, a non-speech component) from the acoustic signal.

제1 디바이스(4100a)는 음성 신호를 허브 디바이스인 제2 디바이스(4200a)에 전송한다 (단계 ②).The first device 4100a transmits a voice signal to the second device 4200a, which is a hub device (step ②).

허브 디바이스인 제2 디바이스(4200a)는 제1 디바이스(4100a)로부터 음성 신호를 수신하고, 음성 신호를 텍스트로 변환하고, 텍스트를 해석함으로써 리스너 디바이스를 동작 수행 디바이스로 결정한다 (단계 ③). 일 실시예에서, 제2 디바이스(4200a)는 메모리에 기 저장된 ASR 모듈의 데이터를 이용하여 ASR(Automatic Speech Recognition)을 수행함으로써, 음성 신호를 텍스트로 변환할 수 있다. 제2 디바이스(4200a)는 메모리에 기 저장된 디바이스 판단 모델을 이용하여 텍스트를 해석함으로써, 텍스트로부터 인텐트를 검출하고, 검출된 인텐트에 대응하는 동작을 수행하는 디바이스를 결정할 수 있다. 도 12a에 도시된 실시예에서, 제2 디바이스(4200a)는 제1 디바이스(4100a)를 동작 수행 디바이스로 결정할 수 있다. The second device 4200a, which is a hub device, receives a voice signal from the first device 4100a, converts the voice signal to text, and interprets the text to determine the listener device as an operation performing device (step ③). In an embodiment, the second device 4200a may convert a speech signal into text by performing Automatic Speech Recognition (ASR) using data of an ASR module previously stored in a memory. The second device 4200a may detect an intent from the text and determine a device that performs an operation corresponding to the detected intent by analyzing the text using the device determination model previously stored in the memory. In the embodiment illustrated in FIG. 12A, the second device 4200a may determine the first device 4100a as the device performing the operation.

허브 디바이스인 제2 디바이스(4200a)에 의해 결정된 동작 수행 디바이스에 대응하는 기능 판단 모델은 허브 디바이스의 메모리 내에 기 저장되어 있거나, 동작 수행 디바이스로 결정된 제1 디바이스(4100a) 자체에 저장되어 있거나, 또는 음성 비서 서버(2000, 도 3 참조)의 메모리(2300, 도 3 참조) 내에 저장되어 있을 수 있다. 각 디바이스에 대응하는 기능 판단 모델은, 디바이스가 판단된 기능에 따른 동작을 수행하기 위한 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용하는 모델이다.The function determination model corresponding to the operation performing device determined by the second device 4200a as the hub device is previously stored in the memory of the hub device, or is stored in the first device 4100a itself determined as the operation performing device, or It may be stored in the memory 2300 (see FIG. 3) of the voice assistant server 2000 (see FIG. 3). The function determination model corresponding to each device is a model used by the device to obtain detailed operations for performing an operation according to the determined function and operation information regarding a relationship between the detailed operations.

도 12a에 도시된 실시예에서, 제1 디바이스(4100a)에 대응하는 기능 판단 모델은 제1 디바이스(4100a)의 메모리 내에 기 저장되어 있을 수 있다. 예를 들어, 제1 디바이스(4100a)는 에어컨에 대응하는 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 획득하기 위하여 이용하는 에어컨 기능 판단 모델(4132, 도 5 참조)을 저장할 수도 있다. In the embodiment illustrated in FIG. 12A, the function determination model corresponding to the first device 4100a may be pre-stored in the memory of the first device 4100a. For example, the first device 4100a may store an air conditioner function determination model 4132 (refer to FIG. 5) used to obtain detailed operations corresponding to the air conditioner and operation information about a relationship between the detailed operations.

허브 디바이스인 제2 디바이스(4200a)는 텍스트를 리스너 디바이스의 기능 판단 모델에 제공한다 (단계 ④). The second device 4200a, which is a hub device, provides the text to the function determination model of the listener device (step 4).

제1 디바이스(4100a)는 수신된 텍스트를 해석함으로서, 동작을 실행한다 (단계 ⑤). 일 실시예에서, 제1 디바이스(4100a)는 에어컨의 기능 판단 모델(4132)에 포함된 자연어 이해 모델(4134, 도 5 참조)을 이용하여 텍스트의 적어도 일부를 분석하고, 텍스트의 적어도 일부에 대한 분석 결과에 기초하여 제1 디바이스(4100a)가 수행할 동작에 관한 동작 정보를 획득할 수 있다. 기능 판단 모델(4132)은, 제1 디바이스(4100a)가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 생성하기 위하여 디바이스의 세부 동작에 관련된 동작 정보를 관리하는 액션 플랜 관리 모듈(4136, 도 5 참조)을 포함할 수 있다. 액션 플랜 관리 모듈(4136)은, 제1 디바이스(4100a)가 실행하는 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 관리할 수 있다. 액션 플랜 관리 모듈(4136)은, 텍스트의 적어도 일부에 관한 분석 결과에 기초하여, 제1 디바이스(4100a)가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 플래닝(planning)할 수 있다. 제1 디바이스(4100a)는 기능 판단 모델(4132)에 의한 텍스트의 적어도 일부에 관한 분석 결과에 기초하여 세부 동작들 및 세부 동작들의 실행 순서를 플래닝하고, 플래닝 결과에 기초하여 동작을 실행할 수 있다.The first device 4100a executes an operation by interpreting the received text (step 5). In one embodiment, the first device 4100a analyzes at least a part of the text using the natural language understanding model 4134 (refer to FIG. 5) included in the function determination model 4132 of the air conditioner, and Operation information regarding an operation to be performed by the first device 4100a may be obtained based on the analysis result. The function determination model 4132 is an action plan management module 4136 (FIG. 5) that manages operation information related to a detailed operation of a device in order to generate detailed operations to be performed by the first device 4100a and an execution order of the detailed operations. Reference). The action plan management module 4136 may manage detailed operations executed by the first device 4100a and operation information regarding a relationship between the detailed operations. The action plan management module 4136 may plan detailed operations to be performed by the first device 4100a and an execution order of the detailed operations based on an analysis result of at least a part of the text. The first device 4100a may plan detailed operations and an execution order of the detailed operations based on an analysis result of at least a portion of the text by the function determination model 4132, and execute the operation based on the planning result.

도 12b는 본 개시의 허브 디바이스 및 제2 디바이스의 동작을 도시한 개념도이다.12B is a conceptual diagram illustrating an operation of a hub device and a second device according to the present disclosure.

도 12b에 도시된 화살표는 제1 디바이스(4100b)와 제2 디바이스(4200b) 간의 음성 신호 및 텍스트를 포함하는 데이터의 이동, 전송, 및 수신을 표시한다. 원문자 안의 숫자는 각 동작이 수행되는 순서를 의미한다. Arrows shown in FIG. 12B indicate movement, transmission, and reception of data including text and voice signals between the first device 4100b and the second device 4200b. The numbers in the original letters indicate the order in which each action is performed.

도 12a와 마찬가지로, 도 12b에 도시된 제1 디바이스(4100b) 및 제2 디바이스(4200b)는 유선 통신 또는 무선 통신 방식으로 상호 연결되고, 데이터 통신을 수행할 수 있다. Like FIG. 12A, the first device 4100b and the second device 4200b illustrated in FIG. 12B are interconnected through wired communication or wireless communication, and may perform data communication.

도 12b를 참조하면, 제1 디바이스(4100b)는 사용자로부터 음성 입력을 수신하는 리스너 디바이스임과 동시에, 수신된 음성 입력을 해석함으로써, 동작 수행 디바이스를 결정하고, 결정된 디바이스가 동작을 수행하도록 제어하는 허브 디바이스일 수 있다. Referring to FIG. 12B, the first device 4100b is a listener device that receives a voice input from a user and analyzes the received voice input to determine a device to perform an operation and control the determined device to perform the operation. It may be a hub device.

도 12b에 도시된 실시예에서, 제1 디바이스(4100b)는 사용자로부터 “에어컨 온도를 20℃로 내려줘”와 같은 음성 입력을 수신한다 (단계 ①).In the embodiment shown in FIG. 12B, the first device 4100b receives a voice input such as “Turn down the air conditioner temperature to 20°C” from the user (step ①).

제1 디바이스(4100b)는 음성 입력을 해석함으로써, 허브 디바이스를 동작 수행 디바이스로 결정하고, 동작을 실행한다 (단계 ②). 제1 디바이스(4100b)가 허브 디바이스로서 음성 입력을 텍스트로 변환하고, 변환된 텍스트를 해석함으로써, 동작 수행 디바이스를 결정하고, 동작 수행 디바이스가 동작을 수행하기 위한 동작 정보를 획득하고, 획득된 동작 정보에 기초하여 동작을 실행하는 방법은 도 12a에서 설명한 제1 디바이스(4100a)의 방법과 동일하므로, 중복되는 설명은 생략한다. The first device 4100b determines the hub device as the operation performing device by analyzing the voice input, and executes the operation (step 2). As a hub device, the first device 4100b converts voice input into text and interprets the converted text to determine an operation performing device, obtains operation information for the operation performing device to perform an operation, and obtains the operation. Since the method of executing the operation based on the information is the same as the method of the first device 4100a described with reference to FIG. 12A, a duplicate description will be omitted.

도 12a 및 도 12b에 도시된 실시예에서, 사용자가 특정 디바이스를 통해 실행하고자 하는 발화 의도, 예를 들어 에어컨의 설정 온도를 내리는 인텐트와 관련되는 동작 수행 디바이스는 모두 제1 디바이스(4100a, 4100b)로서 동일하다. 그러나, 도 12a에 도시된 실시예에서는 제1 디바이스(4100a)가 리스너 디바이스이기 때문에 음성 입력을 직접 해석하여 동작 수행 디바이스를 결정할 수 없는바, 허브 디바이스인 제2 디바이스(4200a)에 음성 신호를 전송하고, 다시 제2 디바이스(4200a)로부터 텍스트를 수신하여야 하는 과정이 더 필요하게 된다. 도 12b에 도시된 실시예에서는 제1 디바이스(4100b)가 허브 디바이스이기 때문에 제2 디바이스(4200b)에 음성 신호를 전송하거나, 제2 디바이스(4200b)로부터 텍스트를 수신하는 등의 불필요한 과정이 생략된다. 따라서, 도 12b에 도시된 실시예에서는, 도 12a의 실시예 대비 지연 시간(latency)이 적고, 도 12a의 실시예 대비 발화의 처리 시간이 더 적게 소요될 수 있다. '발화의 처리 시간(processing time)'은 사용자의 발화를 수신한 시점으로부터 동작 실행이 완료되는 시점까지의 시간을 의미한다. 일 실시예에서, 발화의 처리 시간은 사용자의 발화를 수신한 시점으로부터 동작 실행 완료 메시지를 출력하는 시점까지의 시간을 의미할 수도 있다.In the embodiment shown in FIGS. 12A and 12B, the device for performing an operation related to the intent to lower the set temperature of the air conditioner, for example, the ignition intention that the user intends to execute through a specific device, are all first devices 4100a and 4100b. It is the same as ). However, in the embodiment shown in FIG. 12A, since the first device 4100a is a listener device, it is not possible to directly analyze the voice input to determine the operation performing device. Therefore, a voice signal is transmitted to the second device 4200a, which is a hub device. Then, a further process of receiving the text from the second device 4200a is required. In the embodiment shown in FIG. 12B, since the first device 4100b is a hub device, unnecessary processes such as transmitting a voice signal to the second device 4200b or receiving a text from the second device 4200b are omitted. . Accordingly, in the embodiment shown in FIG. 12B, the latency may be less than that in the embodiment shown in FIG. 12A, and the processing time for the utterance may take less than that in the embodiment of FIG. 12A. The'processing time' refers to the time from the time when the user's utterance is received until the operation execution is completed. In an embodiment, the processing time of the utterance may mean a time from the time point when the user's utterance is received to the time point at which the operation execution completion message is output.

본 개시의 일 실시예에서, 복수의 디바이스 중 사용자가 더 자주 사용하고, 발화의 처리 시간이 짧게 소요되는 디바이스를 허브 디바이스로 결정할 수 있다. 또한, 현재 허브 디바이스로 사용되는 디바이스 보다 사용자가 더 자주 사용하고, 발화의 처리 시간이 짧게 소요되는 디바이스가 있는 경우, 그 디바이스를 허브 디바이스로 대체함으로써, 허브 디바이스를 변경할 수 있다. 도 12a 및 도 12b에 도시된 실시예에서, 사용자는 여름에 에어컨 사용 빈도가 증가하고, 따라서 에어컨 제어와 관련된 발화의 빈도수가 높아지는바, 사용 빈도수 및 발화의 처리 시간을 고려할 때 TV인 제2 디바이스(4200a)를 허브 디바이스로 사용하는 대신, 허브 디바이스를 에어컨인 제1 디바이스(4100b)로 변경하는 경우(도 12b 참조) 지연 시간(latency)을 단축할 수 있다. 또한, 현재 허브 디바이스로 사용되고 있는 디바이스의 전원이 오프(off)되거나, 네트워크 연결이 끊기는 경우 등 허브 디바이스가 정상적으로 동작할 수 없는 예외 상황에서 허브 디바이스를 다른 디바이스로 대체할 수 있는바, 예외 상황에 유연하게 대처할 수 있다. In an embodiment of the present disclosure, a device that a user uses more often and takes a shorter time to process an utterance among a plurality of devices may be determined as the hub device. In addition, when there is a device that is used by a user more often than a device that is currently used as a hub device and requires a shorter processing time for ignition, the hub device can be changed by replacing the device with a hub device. In the embodiment shown in FIGS. 12A and 12B, the user uses an air conditioner in the summer, and thus the frequency of ignition related to the air conditioner control increases. Considering the frequency of use and the processing time of ignition, the second device that is a TV When the hub device is changed to the first device 4100b, which is an air conditioner, instead of using 4200a as the hub device (see FIG. 12B), the latency can be shortened. In addition, the hub device can be replaced with another device in an exceptional situation where the hub device cannot operate normally, such as when the power of the device currently being used as a hub device is turned off or the network connection is disconnected. You can respond flexibly.

본 개시의 일 실시예에서, 허브 디바이스는 기설정된 시간 간격에 따라 주기적으로 복수의 디바이스 각각의 사용 빈도수 및 발화의 처리 시간에 관한 정보를 획득하고, 획득된 정보를 이용하여 현재 허브 디바이스로 사용되는 디바이스의 사용 빈도수 및 발화의 처리 시간과 비교함으로써 주기적으로 허브 디바이스를 변경할 수 있다. In an embodiment of the present disclosure, the hub device periodically acquires information on the frequency of use and processing time of utterances of each of the plurality of devices according to a preset time interval, and uses the obtained information to be used as the current hub device. The hub device can be changed periodically by comparing the frequency of use of the device and the processing time of the ignition.

도 13은 본 개시의 일 실시예에 따른 허브 디바이스(1002)의 구성 요소를 도시한 블록도이다.13 is a block diagram illustrating components of a hub device 1002 according to an embodiment of the present disclosure.

허브 디바이스(Hub device)(1002)는 사용자의 음성 입력을 수신하고, 수신된 음성 입력에 기초하여 복수의 디바이스(4000) 중 적어도 하나의 디바이스를 제어하는 디바이스이다. 허브 디바이스(1002)는 사용자로부터 음성 입력을 수신하는 리스너 디바이스(listener device)일 수 있다. The hub device 1002 is a device that receives a user's voice input and controls at least one of the plurality of devices 4000 based on the received voice input. The hub device 1002 may be a listener device that receives a voice input from a user.

도 13을 참조하면, 허브 디바이스(1002)는 적어도 마이크(1100), 프로세서(1200), 메모리(1300) 및 통신 인터페이스(1400)를 포함하도록 구성될 수 있다. 허브 디바이스(1002)에 포함되는 구성 요소 중 마이크(1100), 프로세서(1200), 및 통신 인터페이스(1400)는 도 2에 도시된 구성 요소들과 각각 동일하므로, 중복되는 설명은 생략한다. Referring to FIG. 13, the hub device 1002 may be configured to include at least a microphone 1100, a processor 1200, a memory 1300, and a communication interface 1400. Among the constituent elements included in the hub device 1002, the microphone 1100, the processor 1200, and the communication interface 1400 are the same as the constituent elements shown in FIG.

메모리(1300)는 ASR 모듈(1310)에 관한 데이터, NLG 모듈(1320)에 관한 데이터, TTS 모듈(1330)에 관한 데이터, 디바이스 판단 모델(1340)에 관한 데이터, 리소스 트래킹 모듈(1350)에 관한 데이터, 기능 판단 모델 관리 모듈(1360)에 관한 데이터, 복수의 기능 판단 모델(1370), 및 허브 디바이스 결정 모듈(1380)에 관한 데이터가 저장되어 있을 수 있다. ASR 모듈(1310), NLG 모듈(1320), TTS 모듈(1330), 디바이스 판단 모델(1340), 리소스 트래킹 모듈(1350), 기능 판단 모델 관리 모듈(1360), 및 복수의 기능 판단 모델(1370) 각각은 도 2에 도시된 구성과 동일하므로, 중복되는 설명은 생략한다.The memory 1300 includes data about the ASR module 1310, data about the NLG module 1320, data about the TTS module 1330, data about the device determination model 1340, and the resource tracking module 1350. Data, data about the function determination model management module 1360, a plurality of function determination models 1370, and data about the hub device determination module 1380 may be stored. ASR module 1310, NLG module 1320, TTS module 1330, device determination model 1340, resource tracking module 1350, function determination model management module 1360, and a plurality of function determination models 1370 Since each is the same as the configuration shown in FIG. 2, redundant descriptions will be omitted.

허브 디바이스 결정 모듈(1380)은 허브 디바이스(1002) 및 허브 디바이스(1002)에 로그인된 사용자 계정(user account)에 따라 IoT 서버(3000, 도 4 참조)에 기 등록된 복수의 디바이스(4000, 도 5 참조) 중 어느 하나의 디바이스를 허브 디바이스로 결정하도록 구성되는 모듈이다. 허브 디바이스 결정 모듈(1380)은 복수의 디바이스(4000) 중 적어도 하나의 허브 디바이스 후보(hub device candidate)를 선택하고, 적어도 하나의 허브 디바이스 후보 각각의 사용 이력 정보 및 성능 정보에 기초하여 적어도 하나의 허브 디바이스 후보 중 어느 하나의 디바이스를 결정하며, 현재의 허브 디바이스(1002)를 결정된 디바이스로 대체함으로써, 허브 디바이스를 변경하도록 구성되는 데이터, 명령어들(instructions) 또는 프로그램 코드를 포함할 수 있다. The hub device determination module 1380 includes a plurality of devices 4000 previously registered in the IoT server 3000 (refer to FIG. 4) according to the hub device 1002 and the user account logged in the hub device 1002. 5) is a module configured to determine any one device as the hub device. The hub device determination module 1380 selects at least one hub device candidate from among the plurality of devices 4000, and selects at least one hub device candidate based on usage history information and performance information of each of the at least one hub device candidate. By determining any one of the hub device candidates, and replacing the current hub device 1002 with the determined device, data, instructions, or program code configured to change the hub device may be included.

프로세서(1200)는 허브 디바이스 결정 모듈(1380)에 관한 데이터 또는 프로그램 코드를 이용하여 복수의 디바이스(4000) 중 적어도 하나의 허브 디바이스 후보(hub device candidate)를 선택할 수 있다. 일 실시예에서, 프로세서(1200)는 허브 디바이스 결정 모듈(1380)에 관한 데이터 또는 프로그램 코드를 이용하여 복수의 디바이스(4000) 각각의 상시 전원 공급 여부, 컴퓨팅 파워(computing power), 및 전력 소비량 중 적어도 하나의 정보를 획득하고, 상시 전원 공급 여부, 컴퓨팅 파워(computing power), 및 전력 소비량 중 적어도 하나에 기초하여 복수의 디바이스(4000) 중 적어도 하나의 허브 디바이스 후보를 결정할 수 있다. The processor 1200 may select at least one hub device candidate from among the plurality of devices 4000 using data or program code about the hub device determination module 1380. In one embodiment, the processor 1200 uses data or program code for the hub device determination module 1380 to determine whether or not the plurality of devices 4000 are always powered, computing power, and power consumption. At least one of the plurality of devices 4000 may be obtained, and at least one hub device candidate may be determined based on at least one of whether power is always supplied, computing power, and power consumption.

프로세서(1200)는 허브 디바이스 결정 모듈(1380)에 관한 데이터 또는 프로그램 코드를 이용하여, 적어도 하나의 허브 디바이스 후보 각각의 사용 이력 정보 및 성능 정보를 획득하고, 획득된 사용 이력 정보 및 성능 정보에 기초하여 적어도 하나의 허브 디바이스 후보 중 어느 하나의 디바이스를 결정할 수 있다. 프로세서(1200)는 결정된 디바이스로 현재 허브 디바이스(1002)를 대체함으로써, 허브 디바이스를 변경할 수 있다. 예를 들어, 현재 허브 디바이스(1002)가 TV인 경우, 프로세서(1200)는 허브 디바이스 결정 모듈(1380)에 관한 데이터를 이용하여 복수의 디바이스(4000) 중 에어컨을 신규 허브 디바이스로 결정하고, 현재 허브 디바이스(1002)인 TV를 에어컨으로 대체함으로써, 허브 디바이스(1002)를 변경할 수 있다. The processor 1200 acquires usage history information and performance information of each of the at least one hub device candidate by using data or program code about the hub device determination module 1380, and based on the obtained usage history information and performance information. Thus, any one device among at least one hub device candidate may be determined. The processor 1200 may change the hub device by replacing the current hub device 1002 with the determined device. For example, if the current hub device 1002 is a TV, the processor 1200 determines an air conditioner among the plurality of devices 4000 as a new hub device using data on the hub device determination module 1380, and By replacing the TV, which is the hub device 1002, with an air conditioner, the hub device 1002 can be changed.

허브 디바이스 결정 모듈(1380)은 사용 이력 로그 데이터베이스(1382) 및 디바이스 성능 이력 데이터베이스(1384)를 포함할 수 있다. 도 13에서는 사용 이력 로그 데이터베이스(1382) 및 디바이스 성능 이력 데이터베이스(1384)가 허브 디바이스 결정 모듈(1380) 내에 포함되는 것으로 도시되어 있으나, 이에 한정되는 것은 아니다. 일 실시예에서, 사용 이력 로그 데이터베이스(1382) 및 디바이스 성능 이력 데이터베이스(1384)는 허브 디바이스 결정 모듈(1380)에 포함되지 않고, 메모리(1300)에 저장될 수도 있다. The hub device determination module 1380 may include a usage history log database 1382 and a device performance history database 1384. In FIG. 13, the usage history log database 1382 and the device performance history database 1384 are shown to be included in the hub device determination module 1380, but are not limited thereto. In an embodiment, the usage history log database 1382 and the device performance history database 1384 are not included in the hub device determination module 1380 and may be stored in the memory 1300.

다른 실시예에서, 사용 이력 로그 데이터베이스(1382) 및 디바이스 성능 이력 데이터베이스(1384) 중 적어도 하나는 허브 디바이스(1002)에 포함되지 않고, 외부 데이터베이스로 구성될 수도 있다. 이 경우, 허브 디바이스(1002)는 네트워크를 통해 사용 이력 로그 데이터베이스(1382) 및 디바이스 성능 이력 데이터베이스(1384) 중 적어도 하나에 액세스(access)할 수 있다. In another embodiment, at least one of the usage history log database 1382 and the device performance history database 1384 is not included in the hub device 1002 and may be configured as an external database. In this case, the hub device 1002 may access at least one of the usage history log database 1382 and the device performance history database 1384 through a network.

사용 이력 로그 데이터베이스(1382)는 허브 디바이스(1002) 및 복수의 디바이스(4000) 각각의 사용 빈도수 및 최근 사용 이력에 관한 정보를 로그(log) 형태로 저장하는 데이터베이스이다. 사용 이력 로그 데이터베이스(1382)는 예를 들어, 허브 디바이스(1002) 및 복수의 디바이스(4000) 각각이 사용자에 의해 리스너 디바이스로 사용된 빈도수, 동작 수행 디바이스(executer device)로 사용된 빈도수, 리스너 디바이스로 사용된 최근 사용 이력, 및 동작 수행 디바이스로 사용된 최근 사용 이력 중 적어도 하나의 데이터를 로그 형태로 저장할 수 있다. 사용 이력 로그 데이터베이스(1382)는 예를 들어, 사용자로부터 자주 수신된 음성 입력 또는 음성 입력으로부터 변환된 텍스트를 저장할 수도 있다.The usage history log database 1382 is a database that stores information on the frequency of use and recent usage history of each of the hub device 1002 and the plurality of devices 4000 in the form of a log. The usage history log database 1382 includes, for example, the frequency of each of the hub device 1002 and the plurality of devices 4000 used as a listener device by a user, the frequency used as an executer device, and a listener device. At least one of a recent use history used as a device and a recent use history used as an operation performing device may be stored in a log format. The usage history log database 1382 may store, for example, a voice input frequently received from a user or text converted from a voice input.

디바이스 성능 이력 데이터베이스(device performace history log database)(1384)는 허브 디바이스(1002) 및 복수의 디바이스(4000) 각각의 성능의 이력 정보를 로그(log) 형태로 저장하는 데이터베이스이다. 디바이스 성능 이력 데이터베이스(1384)는 예를 들어, 허브 디바이스(1002) 및 복수의 디바이스 각각의 발화 처리 시간에 관한 데이터를 로그 형태로 저장할 수 있다. '발화 처리 시간(processing time)’은 디바이스가 사용자의 발화를 수신한 시점으로부터 동작 실행이 완료되는 시점까지의 시간을 의미한다. 일 실시예에서, 발화의 처리 시간은 사용자의 발화를 수신한 시점으로부터 동작 실행 완료 메시지를 출력하는 시점까지의 시간을 의미할 수도 있다. 발화 처리 시간은 디바이스의 성능과 반비례한다. 예를 들어, 발화 처리 시간이 짧을수록 디바이스의 성능이 좋다는 것을 의미한다.The device performace history log database 1384 is a database that stores performance history information of each of the hub device 1002 and the plurality of devices 4000 in the form of a log. The device performance history database 1384 may store, for example, data about the hub device 1002 and the utterance processing time of each of the plurality of devices in a log format. The'processing time' refers to the time from the time when the device receives the user's speech to the time when the operation is completed. In an embodiment, the processing time of the utterance may mean a time from the time point when the user's utterance is received to the time point at which the operation execution completion message is output. The ignition processing time is inversely proportional to the device's performance. For example, the shorter the ignition processing time, the better the device's performance.

일 실시예에서, 허브 디바이스(1002)는 복수의 디바이스(4000) 각각으로부터 발화 처리 시간의 시뮬레이션 결과에 관한 정보를 획득할 수 있다. 일 실시예에서, 복수의 디바이스(4000) 각각은 사용자의 발화 예시, 예를 들어 "에어컨 온도를 20°로 내려줘~" 또는 "TV에서 영화 어벤져스 틀어줘~" 등과 같은 예시 텍스트를 해석함으로써 동작 수행 디바이스를 결정하고, 결정된 동작 수행 디바이스가 수행할 동작에 관한 동작 정보를 획득하고, 획득된 동작 정보를 이용하여 제어 명령을 생성하며, 생성된 제어 명령에 기초하여 동작 수행 디바이스가 동작을 실행할 때까지 소요되는 발화 처리 시간을 시뮬레이션할 수 있다. 일 실시예에서, 복수의 디바이스(4000) 각각은 백 그라운드 프로세스(background process)를 통해 발화 처리 시간을 시뮬레이션할 수 있다. '백 그라운드 프로세스'는 사용자에 의한 동작이 아닌, 디바이스 자체적으로 사용자에 의해 인지되지 않는 백 그라운드 환경에서 실행되는 프로세스를 의미한다. 복수의 디바이스(4000) 각각은 시뮬레이션 결과를 허브 디바이스(1002)에 전송할 수 있다. 허브 디바이스(1002)는 복수의 디바이스(4000) 각각으로부터 획득한 발화 처리 시간의 시뮬레이션 결과를 디바이스 성능 이력 데이터베이스(1384)에 저장할 수 있다. In an embodiment, the hub device 1002 may obtain information on a simulation result of the speech processing time from each of the plurality of devices 4000. In one embodiment, each of the plurality of devices 4000 interprets an example text such as an example of the user's ignition, for example, "Take the air conditioner temperature down to 20°" or "Play the movie Avengers on TV". Determine the operation performing device, obtain operation information on the operation to be performed by the determined operation execution device, generate a control command using the obtained operation information, and execute the operation based on the generated control command. It is possible to simulate the ignition processing time required until. In one embodiment, each of the plurality of devices 4000 may simulate an ignition processing time through a background process. 'Background process' refers to a process that is not an operation by a user, but a process that is executed in a background environment that is not recognized by the user by the device itself. Each of the plurality of devices 4000 may transmit the simulation result to the hub device 1002. The hub device 1002 may store a simulation result of the speech processing time acquired from each of the plurality of devices 4000 in the device performance history database 1384.

프로세서(1200)는 허브 디바이스 결정 모듈(1380)의 데이터 또는 프로그램 코드를 이용하여, 사용 이력 로그 데이터베이스(1382)를 분석함으로써, 허브 디바이스(1002) 및 적어도 하나의 디바이스 후보 각각의 사용 빈도에 관한 정보를 획득할 수 있다. 또한, 프로세서(1200)는 허브 디바이스 결정 모듈(1380)의 데이터 또는 프로그램 코드를 이용하여, 디바이스 성능 이력 데이터베이스(1384)를 분석함으로써, 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각의 발화 처리 시간에 관한 정보를 획득할 수 있다. 프로세서(1200)는 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도 정보 및 발화 처리 시간 정보에 기초하여, 현재 허브 디바이스(1002)를 대체할 디바이스를 결정할 수 있다. 프로세서(1200)는 허브 디바이스 결정 모듈(1380)의 데이터 또는 프로그램 코드를 이용하여, 현재 허브 디바이스(1002)로 사용되는 제1 디바이스를 새롭게 결정된 제2 디바이스로 대체함으로써, 허브 디바이스(1002)를 제2 디바이스로 변경할 수 있다. 프로세서(1200)가 사용 빈도 정보 및 발화 처리 시간에 관한 정보에 기초하여 허브 디바이스(1002)를 변경하는 실시예에 대해서는 도 15에서 상세하게 설명하기로 한다. The processor 1200 analyzes the usage history log database 1382 using data or program code of the hub device determination module 1380, thereby providing information on the frequency of use of each of the hub device 1002 and at least one device candidate. Can be obtained. In addition, the processor 1200 analyzes the device performance history database 1384 using the data or program code of the hub device determination module 1380 to process the utterance of each of the hub device 1002 and at least one hub device candidate. You can obtain information about time. The processor 1200 may determine a device to replace the current hub device 1002 based on the frequency information and speech processing time information of each of the hub device 1002 and at least one hub device candidate. The processor 1200 uses the data or program code of the hub device determination module 1380 to replace the first device currently used as the hub device 1002 with a newly determined second device, thereby removing the hub device 1002. It can be changed to 2 devices. An embodiment in which the processor 1200 changes the hub device 1002 based on the information on the frequency of use and the information on the speech processing time will be described in detail with reference to FIG. 15.

그러나, 본 개시의 프로세서(1200)가 사용 빈도 정보 및 발화 처리 시간에 관한 정보에 기초하여 허브 디바이스(1002)를 변경하는 것으로 한정되는 것은 아니다. 일 실시예에서, 허브 디바이스(1002)는 복수의 디바이스(4000) 중 어느 하나의 디바이스를 선택하는 사용자의 입력을 수신하고, 수신된 사용자 입력에 기초하여 선택된 디바이스를 허브 디바이스로 결정할 수도 있다. 예를 들어, 허브 디바이스(1002)는 마이크(1100)를 통해 복수의 디바이스(4000) 중 어느 하나의 디바이스를 선택하는 사용자의 음성 입력을 수신하고, 프로세서(1200)는 ASR 모듈(1310)의 데이터를 이용하여 음성 입력을 텍스트로 변환하고, 제1 자연어 이해 모델(1342)의 데이터를 이용하여 텍스트를 해석함으로써, 사용자가 변경하기를 의도하는 디바이스를 식별할 수 있다. 프로세서(1200)는 식별된 디바이스로 허브 디바이스를 변경할 수 있다. However, the processor 1200 of the present disclosure is not limited to changing the hub device 1002 based on the information on the frequency of use and the information on the speech processing time. In an embodiment, the hub device 1002 may receive an input of a user selecting one of the plurality of devices 4000 and may determine the selected device as the hub device based on the received user input. For example, the hub device 1002 receives a user's voice input for selecting any one of the plurality of devices 4000 through the microphone 1100, and the processor 1200 receives data from the ASR module 1310. A device that the user intends to change may be identified by converting the voice input into text using and interpreting the text using data of the first natural language understanding model 1342. The processor 1200 may change the hub device to the identified device.

도 14는 본 개시의 일 실시예에 따른 허브 디바이스(1002)의 동작 방법을 도시한 흐름도이다.14 is a flowchart illustrating a method of operating the hub device 1002 according to an embodiment of the present disclosure.

단계 S1410에서, 허브 디바이스(1002)는 사용자 계정에 기 등록된 복수의 디바이스(4000, 도 5 참조) 중 적어도 하나의 허브 디바이스 후보(hub device candidates)를 선택한다. 일 실시예에서 허브 디바이스(1002)는, 허브 디바이스(1002)에 로그인된 사용자 계정(user account)에 따라 IoT 서버(3000, 도 4 참조)에 기 등록되고, 허브 디바이스(1002)와 네트워크를 통해 연결되는 복수의 디바이스(4000) 각각의 상시 전원 공급 여부, 컴퓨팅 파워(computing power), 및 전력 소비량 중 적어도 하나의 정보를 획득하고, 상시 전원 공급 여부, 컴퓨팅 파워(computing power), 및 전력 소비량 중 적어도 하나에 기초하여 복수의 디바이스(4000) 중 적어도 하나의 허브 디바이스 후보를 결정할 수 있다.In step S1410, the hub device 1002 selects at least one hub device candidates from among a plurality of devices 4000 (refer to FIG. 5) previously registered in the user account. In one embodiment, the hub device 1002 is pre-registered in the IoT server 3000 (see FIG. 4) according to a user account logged in to the hub device 1002, and through a network with the hub device 1002. Acquires at least one information of whether or not the connected plurality of devices 4000 are always supplied with power, computing power, and power consumption, and is selected from among whether or not the connected devices 4000 are always supplied with power, computing power, and power consumption. At least one hub device candidate among the plurality of devices 4000 may be determined based on at least one.

단계 S1420에서, 허브 디바이스(1002)는 적어도 하나의 허브 디바이스 후보 각각의 사용 이력 정보 및 성능 정보에 기초하여, 적어도 하나의 허브 디바이스 후보 중 어느 하나의 디바이스를 결정한다. In step S1420, the hub device 1002 determines any one of the at least one hub device candidate based on the usage history information and the performance information of each of the at least one hub device candidate.

일 실시예에서, 허브 디바이스(1002)는 메모리(1300, 도 13 참조) 내에 저장되어 있는 사용 이력 로그 데이터베이스(1382, 도 13 참조)를 분석함으로써, 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도에 관한 정보를 획득할 수 있다. 허브 디바이스(1002)는 사용 이력 로그 데이터베이스(1382)로부터, 예를 들어, 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각이 사용자에 의해 리스너 디바이스로 사용된 빈도수, 동작 수행 디바이스(executer device)로 사용된 빈도수, 리스너 디바이스로 사용된 최근 사용 이력, 및 동작 수행 디바이스로 사용된 최근 사용 이력 중 적어도 하나의 사용 이력 정보를 획득할 수 있다. In one embodiment, the hub device 1002 analyzes the usage history log database 1382 (refer to FIG. 13) stored in the memory 1300 (see FIG. 13) to provide the hub device 1002 and at least one hub device candidate. Information on the frequency of use of each can be obtained. The hub device 1002 is from the usage history log database 1382, for example, the frequency of each of the hub device 1002 and at least one hub device candidate used as a listener device by a user, an executer device At least one of the use history information of the frequency used as, the recent use history used as the listener device, and the recent use history used as the operation performing device may be obtained.

일 실시예에서, 허브 디바이스(1002)는 메모리(1300) 내에 저장되어 있는 디바이스 성능 이력 데이터베이스(1384, 도 13 참조)를 분석함으로써, 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각의 성능 이력 정보를 획득할 수 있다. 허브 디바이스(1002)는 디바이스 성능 이력 데이터베이스(1384)로부터, 예를 들어, 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각의 발화 처리 시간에 관한 정보를 획득할 수 있다. '발화 처리 시간(processing time)’은 사용자의 발화를 수신한 시점으로부터 동작 실행이 완료되는 시점까지의 시간을 의미한다. 일 실시예에서, 발화의 처리 시간은 사용자의 발화를 수신한 시점으로부터 동작 실행 완료 메시지를 출력하는 시점까지의 시간을 의미할 수도 있다.In one embodiment, the hub device 1002 analyzes the device performance history database 1384 (refer to FIG. 13) stored in the memory 1300 to provide the hub device 1002 and the performance history of each of the at least one hub device candidate. Information can be obtained. The hub device 1002 may obtain, for example, information on the utterance processing time of each of the hub device 1002 and at least one hub device candidate from the device performance history database 1384. The'processing time' refers to the time from the time when the user's utterance is received until the execution of the operation is completed. In an embodiment, the processing time of the utterance may mean a time from the time point when the user's utterance is received to the time point at which the operation execution completion message is output.

일 실시예에서, 허브 디바이스(1002)는 적어도 하나의 허브 디바이스 후보의 사용 빈도수 및 발화 처리 시간 정보를 현재의 허브 디바이스(1002)의 사용 빈도수 및 발화 처리 시간과 비교함으로써, 적어도 하나의 허브 디바이스 후보 중 허브 디바이스(1002)를 대체할 어느 하나의 디바이스를 결정할 수 있다. 예를 들어, 허브 디바이스(1002)는 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도수 중 최대값을 현재의 허브 디바이스(1002)의 사용 빈도수와 비교하고, 적어도 하나의 허브 디바이스 후보 각각의 발화 처리 시간 중 최소값을 현재의 허브 디바이스(1002)의 발화 처리 시간과 비교함으로써, 적어도 하나의 허브 디바이스 후보 중 어느 하나의 디바이스를 결정할 수 있다. 적어도 하나의 허브 디바이스 후보 중 어느 하나의 디바이스를 결정하는 구체적인 방법에 대해서는 도 15에 도시된 단계 S1510 내지 단계 S1550을 통해 상세하게 설명하기로 한다.In one embodiment, the hub device 1002 compares the frequency of use and the speech processing time information of the at least one hub device candidate with the frequency of use and the speech processing time of the current hub device 1002, so that at least one hub device candidate One of the devices to replace the hub device 1002 may be determined. For example, the hub device 1002 compares the maximum value of the frequency of use of each of the at least one hub device candidate with the current frequency of use of the hub device 1002, and the utterance processing time of each of the at least one hub device candidate Any one of the at least one hub device candidate may be determined by comparing the minimum value with the current processing time of the hub device 1002. A detailed method of determining any one of the at least one hub device candidate will be described in detail through steps S1510 to S1550 shown in FIG. 15.

단계 S1430에서, 허브 디바이스(1002)는 결정된 디바이스로 현재의 허브 디바이스(1002)를 대체함으로써, 허브 디바이스를 변경한다. 예를 들어, 현재의 허브 디바이스(1002)가 TV인 경우, 허브 디바이스(1002)는 허브 디바이스 후보 중 결정된 에어컨으로 TV를 대체함으로써, 허브 디바이스(1002)를 변경할 수 있다. In step S1430, the hub device 1002 changes the hub device by replacing the current hub device 1002 with the determined device. For example, if the current hub device 1002 is a TV, the hub device 1002 may change the hub device 1002 by replacing the TV with an air conditioner determined from among the hub device candidates.

도 15는 본 개시의 일 실시예에 따른 허브 디바이스(1002)의 동작 방법을 도시한 흐름도이다.15 is a flowchart illustrating a method of operating the hub device 1002 according to an embodiment of the present disclosure.

도 15에 도시된 단계 S1510 내지 단계 S1550은 도 14의 단계 S1420을 구체화한 실시예이다. 도 15에 도시된 단계 S1510은 도 14의 단계 S1410이 수행된 이후에 수행된다. Steps S1510 to S1550 shown in FIG. 15 are exemplary embodiments in which step S1420 of FIG. 14 is embodied. Step S1510 shown in FIG. 15 is performed after step S1410 of FIG. 14 is performed.

단계 S1510에서, 허브 디바이스(1002)는 사용 이력 로그 데이터베이스(1382, 도 13 참조)를 분석함으로써, 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도에 대한 정보를 획득한다. 일 실시예에서, 허브 디바이스(1002)의 프로세서(1200, 도 13 참조)는 메모리(1300, 도 13 참조)에 저장되어 있는 사용 이력 로그 데이터베이스(1382)에 액세스(access)하고, 사용 이력 로그 데이터베이스(1382)를 분석함으로써 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각이 사용자에 의해 리스너 디바이스로 사용된 빈도수, 및 동작 수행 디바이스(executer device)로 사용된 빈도수 중 적어도 하나를 포함하는 사용 빈도에 관한 정보를 획득할 수 있다. 또한, 프로세서(1200)는 사용 이력 로그 데이터베이스(1382)를 분석함으로써 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각이 리스너 디바이스로 사용된 최근 사용 이력, 및 동작 수행 디바이스로 사용된 최근 사용 이력 중 적어도 하나를 포함하는 최근 사용 이력에 관한 정보를 획득할 수도 있다. In step S1510, the hub device 1002 obtains information on the frequency of use of the hub device 1002 and each of the at least one hub device candidate by analyzing the usage history log database 1382 (refer to FIG. 13). In one embodiment, the processor 1200 of the hub device 1002 (see FIG. 13) accesses the usage history log database 1382 stored in the memory 1300 (see FIG. 13), and the usage history log database The frequency of use including at least one of the frequency of each of the hub device 1002 and the at least one hub device candidate used as a listener device by a user by analyzing 1382, and a frequency used as an executer device You can obtain information about. In addition, the processor 1200 analyzes the usage history log database 1382, so that the hub device 1002 and at least one hub device candidate each have a recent usage history used as a listener device, and a recent usage history used as an operation performing device. It is also possible to obtain information on the recent use history including at least one of.

단계 S1520에서, 허브 디바이스(1002)는 현재 허브 디바이스(1002)의 사용 빈도를 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도 중 최대값과 비교하고, 허브 디바이스(1002)의 사용 빈도수가 적어도 하나의 허브 디바이스 후보의 사용 빈도수 중 최대값 이하인지 여부를 확인(identify)한다. 허브 디바이스 후보가 하나 뿐인 경우, 허브 디바이스(1002)는 현재 허브 디바이스(1002)로 사용되는 디바이스의 사용 빈도수가 허브 디바이스 후보의 사용 빈도수 보다 작은지 여부를 확인할 수 있다. In step S1520, the hub device 1002 compares the frequency of use of the current hub device 1002 with a maximum value among the use frequencies of each of the at least one hub device candidate, and the frequency of use of the hub device 1002 is at least one hub. It is identified whether or not the device candidate is less than the maximum value among the frequency of use of the candidate device. When there is only one hub device candidate, the hub device 1002 may check whether the frequency of use of the device currently used as the hub device 1002 is less than the frequency of use of the hub device candidate.

현재 허브 디바이스(1002)로 사용되는 디바이스의 사용 빈도수가 적어도 하나의 허브 디바이스 후보의 사용 빈도수 중 최대값 보다 작은 것으로 확인된 경우(단계 S1530), 허브 디바이스(1002)는 디바이스 성능 이력 데이터베이스(1384, 도 13 참조)를 분석함으로써, 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각의 사용자의 발화 처리 시간(processing time)에 관한 정보를 획득한다. 일 실시예에서, 프로세서(1200)는 메모리(1300)에 저장되어 있는 디바이스 성능 이력 데이터베이스(1384)에 액세스(access)하고, 디바이스 성능 이력 데이터베이스(1384)를 분석함으로써 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각의 발화 처리 시간에 관한 정보를 획득할 수 있다. '발화 처리 시간(processing time)’은 디바이스가 사용자의 발화를 수신한 시점으로부터 동작 실행이 완료되는 시점까지의 시간을 의미한다. 일 실시예에서, 발화의 처리 시간은 사용자의 발화를 수신한 시점으로부터 동작 실행 완료 메시지를 출력하는 시점까지의 시간을 의미할 수도 있다. 발화 처리 시간은 디바이스의 성능과 반비례한다. 예를 들어, 발화 처리 시간이 짧을수록 디바이스의 성능이 좋다는 것을 의미한다.When it is determined that the frequency of use of the device currently used as the hub device 1002 is less than the maximum value among the frequency of use of at least one hub device candidate (step S1530), the hub device 1002 includes the device performance history database 1384, 13), information on the processing time of the user of the hub device 1002 and each of the at least one hub device candidate is obtained. In one embodiment, the processor 1200 accesses the device performance history database 1384 stored in the memory 1300 and analyzes the device performance history database 1384 to provide the hub device 1002 and at least one Information on the speech processing time of each of the hub device candidates may be obtained. The'processing time' refers to the time from the time when the device receives the user's speech to the time when the operation is completed. In an embodiment, the processing time of the utterance may mean a time from the time point when the user's utterance is received to the time point at which the operation execution completion message is output. The ignition processing time is inversely proportional to the device's performance. For example, the shorter the ignition treatment time, the better the device's performance.

단계 S1540에서 허브 디바이스(1002)는, 현재 허브 디바이스(1002)로 사용되는 디바이스의 발화 처리 시간을 적어도 하나의 허브 디바이스 후보 각각의 발화 처리 시간 중 최소값과 비교함으로써, 현재 허브 디바이스(1002)의 발화 처리 시간이 적어도 하나의 허브 디바이스 후보의 발화 처리 시간 중 최소값 이상인지 여부를 확인한다. 허브 디바이스 후보가 하나 뿐인 경우, 허브 디바이스(1002)는 현재 허브 디바이스(1002)로 사용되는 디바이스의 발화 처리 시간이 허브 디바이스 후보의 발화 처리 시간 보다 오래 걸리는지 여부를 확인할 수 있다.In step S1540, the hub device 1002 compares the ignition processing time of the device currently used as the hub device 1002 with a minimum value of ignition processing time of each of the at least one hub device candidate, thereby igniting the current hub device 1002. It is checked whether the processing time is greater than or equal to the minimum of the speech processing time of at least one hub device candidate. When there is only one hub device candidate, the hub device 1002 may check whether the ignition processing time of the device currently used as the hub device 1002 takes longer than the utterance processing time of the hub device candidate.

현재 허브 디바이스(1002)로 사용되는 디바이스의 발화 처리 시간이 적어도 하나의 허브 디바이스 후보의 발화 처리 시간의 최소값 보다 오래 걸리는 것으로 확인된 경우(단계 S1550), 허브 디바이스(1002)는 적어도 하나의 허브 디바이스 후보 중 사용 빈도 정보 및 발화 처리 시간 정보에 기초하여, 허브 디바이스(1002)를 대체할 디바이스를 결정한다. 일 실시예에서, 허브 디바이스(1002)는 적어도 하나의 허브 디바이스 후보 중 리스너 디바이스 및 동작 수행 디바이스 중 적어도 하나로 사용되는 빈도수가 가장 많고, 발화 처리 시간이 가장 적게 소요되는 디바이스를 허브 디바이스(1002)를 대체할 디바이스로서 결정할 수 있다. 일 실시예에서, 허브 디바이스(1002)는 사용 빈도수와 발화 처리 시간을 함께 고려하지만, 사용 빈도수에 많은 비중을 두고 허브 디바이스(1002)를 대체할 디바이스를 결정할 수 있다. 예를 들어, 허브 디바이스(1002)는 적어도 하나의 허브 디바이스 후보 중 사용 빈도수가 많은 하나 이상의 디바이스를 먼저 선택한 이후, 선택된 하나 이상의 디바이스 중 발화 처리 시간이 가장 빠른 디바이스를 결정할 수 있다. When it is determined that the ignition processing time of the device currently used as the hub device 1002 takes longer than the minimum ignition processing time of at least one hub device candidate (step S1550), the hub device 1002 is at least one hub device. A device to replace the hub device 1002 is determined based on the use frequency information and the speech processing time information among the candidates. In one embodiment, the hub device 1002 selects a device that is used as at least one of a listener device and an operation performing device among the at least one hub device candidate, which has the highest frequency and takes the least amount of time to process an utterance. It can be decided as the device to be replaced. In one embodiment, the hub device 1002 considers the frequency of use and the ignition processing time together, but may determine a device to replace the hub device 1002 with a large weight on the frequency of use. For example, the hub device 1002 may first select one or more devices having a high frequency of use among at least one hub device candidate, and then determine a device having the fastest utterance processing time among the selected one or more devices.

그러나, 이에 한정되는 것은 아니고, 허브 디바이스(1002)는 적어도 하나의 허브 디바이스 후보 중 발화 처리 시간이 기설정된 임계 시간 보다 적게 소요되는 하나 이상의 디바이스를 먼저 선택한 이후, 선택된 하나 이상의 디바이스 중 사용 빈도수가 가장 많은 디바이스를 결정할 수도 있다. However, the present invention is not limited thereto, and the hub device 1002 first selects one or more devices whose ignition processing time is less than a preset threshold time among at least one hub device candidate, and the frequency of use is the highest among the selected one or more devices. You can also decide on many devices.

단계 S1430에서 허브 디바이스(1002)는, 결정된 디바이스로 현재 허브 디바이스(1002)로 사용되는 디바이스를 대체함으로써, 허브 디바이스를 변경한다. In step S1430, the hub device 1002 changes the hub device by replacing the device currently used as the hub device 1002 with the determined device.

단계 S1520에서 현재 허브 디바이스의 사용 빈도수가 적어도 하나의 허브 디바이스 후보의 사용 빈도수의 최대값 보다 큰 경우(단계 S1440), 현재 허브 디바이스(1002)로 사용되는 디바이스가 계속 허브 디바이스로 유지된다. 마찬가지로, 단계 S1540에서 현재 허브 디바이스(1002)의 발화 처리 시간이 적어도 하나의 허브 디바이스 후보의 발화 처리 시간의 최소값 이하인 경우(단계 S1440), 현재 허브 디바이스(1002)로 사용되는 디바이스가 계속 허브 디바이스로 유지된다. 현재 허브 디바이스(1002)로 사용되는 디바이스의 사용 빈도수가 다른 디바이스의 사용 빈도수 보다 많고, 현재 허브 디바이스(1002)로 사용되는 디바이스의 발화 처리 시간이 다른 디바이스의 발화 처리 시간 보다 적게 소요되는 경우, 굳이 허브 디바이스를 변경할 필요가 없기 때문에 허브 디바이스(1002)로 사용되는 디바이스를 계속 유지한다. In step S1520, when the frequency of use of the current hub device is greater than the maximum value of the use frequency of at least one hub device candidate (step S1440), the device currently used as the hub device 1002 is maintained as the hub device. Similarly, in step S1540, when the current utterance processing time of the hub device 1002 is less than or equal to the minimum value of utterance processing time of at least one hub device candidate (step S1440), the device currently used as the hub device 1002 continues as the hub device. maintain. If the frequency of use of the device currently used as the hub device 1002 is more than the frequency of use of other devices, and the ignition processing time of the device currently used as the hub device 1002 is less than the ignition processing time of other devices, Since there is no need to change the hub device, the device used as the hub device 1002 is kept.

도 16은 본 개시의 일 실시예에 따른 허브 디바이스(1002)의 동작 방법을 도시한 흐름도이다.16 is a flowchart illustrating a method of operating the hub device 1002 according to an embodiment of the present disclosure.

도 16에 도시된 단계 S1610 내지 단계 S1690은 도 6에 도시된 단계 S610과 단계 S620 사이에 수행되는 단계들이다. 단계 S1610은 도 6에 도시된 단계 S610과 동일한 단계이다. 단계 S1630, 단계 S1652, 단계 S1680, 및 단계 S1682가 수행된 이후에는 단계 S620이 수행된다. Steps S1610 to S1690 shown in FIG. 16 are steps performed between steps S610 and S620 shown in FIG. 6. Step S1610 is the same step as step S610 shown in FIG. 6. After step S1630, step S1652, step S1680, and step S1682 are performed, step S620 is performed.

단계 S1610에서, 허브 디바이스(1002)는 사용자 계정에 등록된 신규 디바이스의 디바이스 정보를 IoT 서버(3000, 도 4 참조)로부터 수신한다. 신규 디바이스는 허브 디바이스(1002)의 사용자가 구매 또는 소유권 이전 등을 통해 신규로 취득하고, 허브 디바이스(1002)와 동일한 사용자 계정(user account)으로 로그인함으로써, IoT 서버(3000)에 등록된 디바이스를 의미한다. 허브 디바이스(1002)가 수신하는 신규 디바이스의 디바이스 정보는 예를 들어, 신규 디바이스의 식별 정보(예를 들어, 디바이스 id 정보), 신규 디바이스의 디바이스 타입, 신규 디바이스의 기능 수행 능력 정보(capability), 및 위치 정보 중 적어도 하나를 포함할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 신규 디바이스의 전원 온오프(on/off), 또는 현재 실행하고 있는 동작에 관한 상태 정보를 수신할 수도 있다. In step S1610, the hub device 1002 receives device information of a new device registered in the user account from the IoT server 3000 (refer to FIG. 4). The new device is newly acquired by a user of the hub device 1002 through purchase or ownership transfer, and logs in with the same user account as the hub device 1002, so that the device registered in the IoT server 3000 is accessed. it means. The device information of the new device received by the hub device 1002 includes, for example, identification information of the new device (eg, device id information), the device type of the new device, and capability information of the new device. And at least one of location information. In an embodiment, the hub device 1000 may receive power on/off of a new device or status information regarding an operation currently being executed.

허브 디바이스(1002)는 신규 디바이스의 디바이스 정보를 IoT 서버(3000)로부터 수신할 수 있다. 그러나 이에 한정되는 것은 아니고, 허브 디바이스(1002)는 음성 비서 서버(2000, 도 2 참조)로부터 신규 디바이스의 디바이스 정보를 수신할 수 있다. The hub device 1002 may receive device information of a new device from the IoT server 3000. However, the present invention is not limited thereto, and the hub device 1002 may receive device information of a new device from the voice assistant server 2000 (refer to FIG. 2 ).

단계 S1620에서, 허브 디바이스(1002)는 사용자 계정에 기 등록된 복수의 디바이스 중 허브 디바이스가 존재하는지 여부를 확인(identify)한다. 일 실시예에서 허브 디바이스(1002)는, 허브 디바이스(1002)에 로그인된 사용자 계정과 동일한 사용자 계정에 따라 IoT 서버(3000)에 기 등록된 복수의 디바이스 중 리소스 상태 정보에 기초하여 음성 비서 서버(2000, 도 3 참조)에 의해 결정될 수 있다. 일 실시예에서, 허브 디바이스는 복수의 디바이스 중 디바이스 판단 모델(1340, 도 2 참조)를 포함하고, 사용자로부터 수신한 음성 입력을 해석함으로써 동작 수행 디바이스를 결정할 수 있는 디바이스일 수 있다. In step S1620, the hub device 1002 identifies whether a hub device exists among a plurality of devices previously registered in the user account. In one embodiment, the hub device 1002 is a voice assistant server based on resource status information among a plurality of devices previously registered in the IoT server 3000 according to the same user account as the user account logged in to the hub device 1002. 2000, see Fig. 3). In an embodiment, the hub device may be a device capable of determining a device for performing an operation by including a device determination model 1340 (refer to FIG. 2) among a plurality of devices and interpreting a voice input received from a user.

복수의 디바이스 중 허브 디바이스가 존재하지 않는다고 확인된 경우(단계 S1630), 신규 디바이스가 허브 디바이스(1002)로 결정된다. When it is confirmed that the hub device does not exist among the plurality of devices (step S1630), a new device is determined as the hub device 1002.

복수의 디바이스 중 허브 디바이스(1002)가 존재한다고 확인된 경우(단계 S1640), 허브 디바이스(1002)는 사용자 계정에 기 등록된 복수의 디바이스 중 상시 전원 연결, 컴퓨팅 파워, 및 소비 전력량에 기초하여 허브 디바이스 후보를 선택한다. 일 실시예에서, 허브 디바이스(1002)는 복수의 디바이스 중 하나 또는 하나 이상의 허브 디바이스 후보를 결정할 수 있다. 단계 S1640은 도 14에 도시된 단계 S1410과 동일한 단계인바, 중복되는 설명은 생략한다.When it is confirmed that the hub device 1002 exists among the plurality of devices (step S1640), the hub device 1002 is connected to the hub based on the constant power connection, computing power, and power consumption among the plurality of devices previously registered in the user account. Select a device candidate. In an embodiment, the hub device 1002 may determine one or more hub device candidates from among a plurality of devices. Step S1640 is the same step as step S1410 shown in FIG. 14, and redundant descriptions will be omitted.

단계 S1650에서, 허브 디바이스(1002)는 사용자로부터 허브 디바이스의 변경을 요청하는 음성 입력을 수신하는지 여부를 확인(identify)한다. 예를 들어, 현재의 허브 디바이스(1002)로 사용되는 디바이스가 TV인 경우, 허브 디바이스(1002)는 "에어컨을 허브 디바이스로 변경해줘~"와 같은 허브 디바이스 변경을 요청하는 음성 입력을 수신할 수 있다. 그러나, 음성 입력의 수신으로 한정되는 것은 아니고, 허브 디바이스(1002)는 현재 허브 디바이스(1002)로 사용되는 디바이스를 신규 디바이스로 대체함으로써 허브 디바이스를 변경하는 터치 입력, 또는 마우스 또는 키보드 등 조작 장치를 통한 입력을 사용자로부터 수신할 수도 있다.In step S1650, the hub device 1002 identifies whether or not a voice input requesting change of the hub device is received from the user. For example, if the device currently used as the hub device 1002 is a TV, the hub device 1002 may receive a voice input requesting a hub device change such as "Change the air conditioner to a hub device." have. However, it is not limited to the reception of the voice input, and the hub device 1002 replaces the device currently used as the hub device 1002 with a new device to change the hub device by using a touch input, or an operation device such as a mouse or keyboard. It is also possible to receive an input through the user.

허브 디바이스의 변경을 요청하는 음성 입력을 수신하는 경우(단계 S1652), 허브 디바이스(1002)는 수신된 음성 입력에 기초하여 허브 디바이스(1002)를 대체할 디바이스를 결정한다. 허브 디바이스(1002)는 음성 입력을 텍스트로 변환하고, 자연어 이해 모델을 이용하여 텍스트를 해석함으로써 사용자가 변경하기를 원하는 디바이스의 명칭 또는 타입을 식별하고, 식별된 디바이스를 허브 디바이스(1002)를 대체할 디바이스로서 결정할 수 있다. 일 실시예에서, 허브 디바이스(1002)의 프로세서(1200, 도 13 참조)는 ASR 모듈(1310, 도 13 참조)에 관한 데이터 또는 프로그램 코드를 이용하여, 수신된 음성 입력을 텍스트로 변환하고, 제1 자연어 이해 모델(1342, 도 13 참조)에 관한 데이터 또는 프로그램 코드를 이용하여 텍스트를 단어 또는 구 단위로 파싱(parse)하고, 디바이스의 명칭, 보통 명칭, 또는 설치 위치 등을 특정하고 있는 단어 또는 구를 인식하고, 인식된 단어 또는 구로부터 디바이스를 식별할 수 있다. 허브 디바이스(1002)는 식별된 디바이스를 허브 디바이스(1002)를 대체할 디바이스로 결정할 수 있다. When receiving a voice input requesting change of the hub device (step S1652), the hub device 1002 determines a device to replace the hub device 1002 based on the received voice input. The hub device 1002 converts the voice input into text and interprets the text using a natural language understanding model to identify the name or type of the device that the user wants to change, and replace the identified device with the hub device 1002. It can be decided as a device to do. In one embodiment, the processor 1200 (see FIG. 13) of the hub device 1002 converts the received voice input into text using data or program code for the ASR module 1310 (see FIG. 13), and 1 Parse text into words or phrases using data or program code related to the natural language understanding model (1342 (see Fig. 13)), and a word specifying the device name, common name, or installation location, or Recognize phrases and identify devices from recognized words or phrases. The hub device 1002 may determine the identified device as a device to replace the hub device 1002.

사용자로부터 허브 디바이스의 변경을 요청하는 음성 입력을 수신하지 않는 경우(단계 S1660), 허브 디바이스(1002)는 디바이스 성능 이력 데이터베이스(1384, 도 13 참조)를 분석함으로써, 허브 디바이스(1002) 및 적어도 하나의 허브 디바이스 후보 각각의 사용자의 발화 처리 시간(processing time)에 관한 정보를 획득한다. When a voice input requesting a change of the hub device is not received from the user (step S1660), the hub device 1002 analyzes the device performance history database 1384 (refer to FIG. 13), and thus the hub device 1002 and at least one Acquires information about a user's speech processing time of each of the hub device candidates of.

단계 S1670에서 허브 디바이스(1002)는, 현재 허브 디바이스(1002)로 사용되는 디바이스의 발화 처리 시간과 적어도 하나의 허브 디바이스 후보 각각의 발화 처리 시간 중 최소값을 비교함으로써, 현재 허브 디바이스(1002)의 발화 처리 시간이 적어도 하나의 허브 디바이스 후보의 발화 처리 시간의 최소값 보다 오래 걸리는지를 확인한다. In step S1670, the hub device 1002 compares the ignition processing time of the device currently used as the hub device 1002 and the ignition processing time of each of the at least one hub device candidate, thereby igniting the current hub device 1002. It is checked whether the processing time takes longer than the minimum value of the speech processing time of at least one hub device candidate.

단계 S1660 및 단계 S1670은 도 15에 도시된 단계 S1530 및 단계 S1540과 각각 동일하므로, 중복되는 설명은 생략한다.Step S1660 and step S1670 are the same as steps S1530 and S1540 shown in FIG. 15, respectively, and redundant descriptions will be omitted.

현재 허브 디바이스(1002)로 사용되는 디바이스의 발화 처리 시간이 적어도 하나의 허브 디바이스 후보의 발화 처리 시간의 최소값 이하인 경우 (단계 S1680), 현재 허브 디바이스(1002)인 디바이스가 허브 디바이스(1002)로 결정된다. When the ignition processing time of the device currently used as the hub device 1002 is less than or equal to the minimum ignition processing time of at least one hub device candidate (step S1680), the device that is the current hub device 1002 is determined as the hub device 1002 do.

현재 허브 디바이스(1002)로 사용되는 디바이스의 발화 처리 시간이 적어도 하나의 허브 디바이스 후보의 발화 처리 시간의 최소값 보다 오래 소요되는 것으로 확인된 경우 (단계 S1682), 허브 디바이스(1002)는 적어도 하나의 허브 디바이스 후보 중 발화 처리 시간 정보에 기초하여, 허브 디바이스(1002)를 대체할 디바이스를 결정한다. 일 실시예에서, 허브 디바이스(1002)는 적어도 하나의 허브 디바이스 후보 중 발화 처리 시간이 가장 작은 디바이스를 허브 디바이스(1002)를 대체할 디바이스로서 결정할 수 있다. When it is determined that the ignition processing time of the device currently used as the hub device 1002 takes longer than the minimum ignition processing time of at least one hub device candidate (step S1682), the hub device 1002 is A device to replace the hub device 1002 is determined based on the speech processing time information among the device candidates. In an embodiment, the hub device 1002 may determine a device having the smallest speech processing time among at least one hub device candidate as a device to replace the hub device 1002.

단계 S620에서, 결정된 허브 디바이스(1002)는 음성 비서 서버(2000)에, 허브 디바이스(1002)에 저장된 디바이스 판단 모델(1340, 도 13 참조)에 대한 업데이트를 요청한다. In step S620, the determined hub device 1002 requests the voice assistant server 2000 to update the device determination model 1340 (refer to FIG. 13) stored in the hub device 1002.

도 17은 허브 디바이스(1000), 복수의 디바이스(4000) 및 음성 비서 서버(2000)를 포함하는 네트워크 환경을 도시한 도면이다.17 is a diagram illustrating a network environment including a hub device 1000, a plurality of devices 4000, and a voice assistant server 2000.

도 17을 참조하면, 허브 디바이스(1000), 복수의 디바이스(4000), 음성 비서 서버(2000), 및 IoT 서버(3000)는 유선 통신 또는 무선 통신 방식으로 상호 연결되고, 통신을 수행할 수 있다. 일 실시예에서, 허브 디바이스(1000)와 복수의 디바이스(4000)는 상호 간 통신망을 통해 직접 연결될 수 있지만, 이에 한정되는 것은 아니다. Referring to FIG. 17, a hub device 1000, a plurality of devices 4000, a voice assistant server 2000, and an IoT server 3000 may be interconnected through wired communication or wireless communication, and may perform communication. . In an embodiment, the hub device 1000 and the plurality of devices 4000 may be directly connected to each other through a communication network, but are not limited thereto.

허브 디바이스(1000) 및 복수의 디바이스(4000)는 음성 비서 서버(2000)와 연결될 수 있으며, 허브 디바이스(1000)은 서버를 통해 복수의 디바이스(4000)과 연결될 수 있다. 또한, 허브 디바이스(1000)와 복수의 디바이스(4000)는 IoT 서버(3000)와 연결될 수 있다. 다른 실시예에서, 허브 디바이스(1000)와 복수의 디바이스(4000) 각각은 통신망을 통해 음성 비서 서버(2000)와 연결되고, 음성 비서 서버(2000)를 통해 외부의 IoT 서버(3000)와 연결될 수 있다. 또 다른 실시예에서, 허브 디바이스(1000)복수의 디바이스(4000)허브 디바이스(1000)는 복수의 디바이스(4000)와 연결될 수 있으며, 허브 디바이스(1000)는 근접하여 위치하는 하나 또는 복수 개의 엑세스 포인트(Access point)를 통해 복수의 디바이스(4000)와 연결될 수 있다. 또한, 허브 디바이스(1000)는 음성 비서 서버(2000) 또는 IoT 서버(3000)와 연결된 상태를 유지하면서, 복수의 디바이스(4000)와 연결될 수 있다.The hub device 1000 and the plurality of devices 4000 may be connected to the voice assistant server 2000, and the hub device 1000 may be connected to the plurality of devices 4000 through a server. In addition, the hub device 1000 and the plurality of devices 4000 may be connected to the IoT server 3000. In another embodiment, each of the hub device 1000 and the plurality of devices 4000 may be connected to the voice assistant server 2000 through a communication network, and may be connected to an external IoT server 3000 through the voice assistant server 2000. have. In another embodiment, the hub device 1000 may be connected to a plurality of devices 4000 and the hub device 1000 may be connected to a plurality of devices 4000, and the hub device 1000 may be one or a plurality of access points located adjacent to each other. It may be connected to the plurality of devices 4000 through the (Access point). In addition, the hub device 1000 may be connected to a plurality of devices 4000 while maintaining a state of being connected to the voice assistant server 2000 or the IoT server 3000.

허브 디바이스(1000), 복수의 디바이스(4000), 음성 비서 서버(2000) 및 IoT 서버(3000)는 근거리 통신망(Local Area Network; LAN), 광역 통신망(Wide Area Network; WAN), 부가가치 통신망(Value Added Network; VAN), 이동 통신망(mobile radio communication network), 위성 통신망 또는 이들의 상호 조합을 통해 연결될 수 있다. 무선 통신 방법은 예를 들어, 무선 랜(Wi-Fi), 블루투스, 블루투스 저 에너지(Bluetooth low energy), 지그비, WFD(Wi-Fi Direct), UWB(ultra wideband), 적외선 통신(IrDA, infrared Data Association), NFC(Near Field Communication) 등이 있을 수 있으나, 이에 한정되는 것은 아니다. The hub device 1000, the plurality of devices 4000, the voice assistant server 2000, and the IoT server 3000 include a local area network (LAN), a wide area network (WAN), and a value-added communication network. It may be connected through an Added Network (VAN), a mobile radio communication network, a satellite communication network, or a combination thereof. Wireless communication methods include, for example, wireless LAN (Wi-Fi), Bluetooth, Bluetooth low energy, ZigBee, Wi-Fi Direct (WFD), ultra wideband (UWB), infrared communication (IrDA, infrared data). Association), NFC (Near Field Communication), and the like, but are not limited thereto.

일 실시예에서, 허브 디바이스(1000)는 사용자의 음성 입력을 수신할 수 있다. 복수의 디바이스(4000) 중 적어도 하나는, 음성 비서 서버(2000) 및/또는 IoT 서버(3000)의 제어 명령을 받아 특정 동작을 수행하는 타겟 디바이스일 수 있다. 복수의 디바이스(4000) 중 적어도 하나는, 허브 디바이스(1000)가 수신한 사용자의 음성 입력에 기반하여, 특정 동작을 수행하도록 제어될 수 있다. 일 실시예에서, 복수의 디바이스(4000) 중 적어도 하나는, 음성 비서 서버(2000) 및/또는 IoT 서버(3000)로부터 제어 명령을 받지 않고, 허브 디바이스(1000)로부터 제어 명령을 수신할 수 있다.In an embodiment, the hub device 1000 may receive a user's voice input. At least one of the plurality of devices 4000 may be a target device that performs a specific operation by receiving a control command from the voice assistant server 2000 and/or the IoT server 3000. At least one of the plurality of devices 4000 may be controlled to perform a specific operation based on a user's voice input received by the hub device 1000. In one embodiment, at least one of the plurality of devices 4000 may receive a control command from the hub device 1000 without receiving a control command from the voice assistant server 2000 and/or the IoT server 3000. .

허브 디바이스(1000)는 사용자로부터 음성 입력(예를 들어, 발화)을 수신할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 ASR 모델을 포함할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 제한적인 기능을 갖는 ASR 모델을 포함할 수 있다. 예를 들어, 허브 디바이스(1000)는 지정된 음성 입력(예를 들어, '하이 빅스비', '오케이 구글'등과 같은 웨이크 업 입력)을 감지하는 기능 또는 일부 음성 입력으로부터 획득한 음성 신호를 전처리하는 기능을 갖는 ASR 모델을 포함할 수 있다. 도 17에서, 허브 디바이스(1000)는 인공지능 스피커(AI speaker)로 도시되었지만, 이에 한정되는 것은 아니다. 일 실시예에서, 복수의 디바이스(4000) 중 어느 하나의 디바이스가 허브 디바이스(1000)일 수 있다. 또한, 허브 디바이스(1000)는 제1 자연어 이해 모델, 제2 자연어 이해 모델 및 자연어 생성 모델을 포함할 수 있다. 이 경우, 허브 디바이스(1000)는 마이크를 통해 사용자의 음성 입력을 수신하거나, 복수의 디바이스(4000) 중 적어도 하나의 디바이스로부터 사용자의 음성 입력을 수신할 수 있다. 허브 디바이스(1000)는, 사용자의 음성 입력이 수신되면 ASR 모델, 제1 자연어 이해 모델, 제2 자연어 이해 모델 및 자연어 생성 모델을 통해 사용자의 음성 입력을 처리하고, 사용자의 음성 입력에 대응하는 응답을 제공할 수 있다.The hub device 1000 may receive a voice input (eg, speech) from a user. In one embodiment, the hub device 1000 may include an ASR model. In one embodiment, the hub device 1000 may include an ASR model with limited functionality. For example, the hub device 1000 has a function of detecting a designated voice input (for example, a wake-up input such as'Hi Bixby','OK Google', etc.) or pre-processing a voice signal obtained from some voice inputs. It can include an ASR model that has a function. In FIG. 17, the hub device 1000 is illustrated as an AI speaker, but is not limited thereto. In an embodiment, any one device among the plurality of devices 4000 may be the hub device 1000. In addition, the hub device 1000 may include a first natural language understanding model, a second natural language understanding model, and a natural language generation model. In this case, the hub device 1000 may receive a user's voice input through a microphone, or may receive a user's voice input from at least one of the plurality of devices 4000. When the user's voice input is received, the hub device 1000 processes the user's voice input through an ASR model, a first natural language understanding model, a second natural language understanding model, and a natural language generation model, and responds to the user's voice input. Can provide.

허브 디바이스(1000)는 수신된 음성 신호에 기초하여, 사용자가 의도하는 동작을 수행할 타겟 디바이스의 타입(type)을 결정할 수 있다. 허브 디바이스(1000)는 아날로그 신호인 음성 신호를 수신하고, ASR(Automatic Speech Recognition)을 수행하여 음성 부분을 컴퓨터로 판독 가능한 텍스트로 변환할 수 있다. 허브 디바이스(1000)는 제1 자연어 이해(Natural Language Understanding, NLU) 모델을 이용하여 변환된 텍스트를 해석하고, 해석 결과에 기초하여 타겟 디바이스를 결정할 수 있다. 허브 디바이스(1000)는 복수의 디바이스(4000) 중 적어도 하나를 타겟 디바이스로 결정할 수 있다. 허브 디바이스(1000)는, 저장하고 있는 복수의 제2 자연어 이해 모델 중에 결정된 타겟 디바이스에 대응하는 제2 자연어 이해 모델을 선택할 수 있다. 허브 디바이스(1000)는 선택된 제2 자연어 이해 모델을 이용하여 사용자가 요청한 타겟 디바이스에서 수행하고자 하는 동작을 판단할 수 있다. 허브 디바이스(1000)는, 저장하고 있는 복수의 제2 자연어 이해 모델 중 결정된 타겟 디바이스에 대응하는 제2 자연어 이해 모델이 없다고 판단되면, 변환된 텍스트 중 적어도 일부를 음성 비서 서버(2000) 또는 복수의 디바이스(4000) 중 적어도 하나로 전송할 수 있다. 허브 디바이스(1000)는 결정된 타겟 디바이스가 판단된 동작을 실행할 수 있도록 타겟 디바이스에 판단된 동작에 대한 정보를 전달한다.The hub device 1000 may determine a type of a target device to perform an operation intended by the user based on the received voice signal. The hub device 1000 may receive a voice signal that is an analog signal and perform Automatic Speech Recognition (ASR) to convert the voice part into computer-readable text. The hub device 1000 may analyze the converted text using a first natural language understanding (NLU) model and determine a target device based on the analysis result. The hub device 1000 may determine at least one of the plurality of devices 4000 as a target device. The hub device 1000 may select a second natural language understanding model corresponding to the determined target device from among a plurality of stored second natural language understanding models. The hub device 1000 may determine an operation to be performed by the target device requested by the user by using the selected second natural language understanding model. When it is determined that there is no second natural language understanding model corresponding to the determined target device among the plurality of stored second natural language understanding models, the hub device 1000 transmits at least part of the converted text to the voice assistant server 2000 or a plurality of Can be transmitted to at least one of the devices 4000. The hub device 1000 transmits information on the determined operation to the target device so that the determined target device can execute the determined operation.

허브 디바이스(1000)는 IoT 서버(3000)로부터 복수의 디바이스(4000)의 정보를 수신할 수 있다. 허브 디바이스(1000)는 수신한 복수의 디바이스(4000) 의 정보를 이용하여 타겟 디바이스를 결정할 수 있다. 또한, 허브 디바이스(1000)는, IoT 서버(3000)을 판단된 동작에 대한 정보를 전달하기 위한 중계 서버로 이용하여, 타겟 디바이스가 판단된 동작을 실행할 수 있도록 타겟 디바이스를 제어할 수 있다. The hub device 1000 may receive information on a plurality of devices 4000 from the IoT server 3000. The hub device 1000 may determine a target device by using the received information of the plurality of devices 4000. In addition, the hub device 1000 may use the IoT server 3000 as a relay server for transmitting information on the determined operation to control the target device so that the target device can execute the determined operation.

허브 디바이스(1000)는 마이크를 통해 사용자의 음성 입력을 수신하고, 수신된 음성 입력을 음성 비서 서버(2000)에 전송할 수 있다. 일 실시예에서, 허브 디바이스(1000)는 수신된 음성 입력으로부터 음성 신호를 획득하고, 음성 신호를 음성 비서 서버(2000)에게 전송할 수 있다.The hub device 1000 may receive a user's voice input through a microphone and transmit the received voice input to the voice assistant server 2000. In an embodiment, the hub device 1000 may obtain a voice signal from the received voice input and transmit the voice signal to the voice assistant server 2000.

도 17에 도시된 실시예에서, 복수의 디바이스(4000)는 에어컨(4100), TV(4200), 세탁기(4300), 및 냉장고(4400)를 포함하지만, 이에 한정되지 않는다. 예를 들어, 복수의 디바이스(4000)는 스마트폰(smartphone), 태블릿 PC(tablet personal computer), 이동 전화기(mobile phone), 영상 전화기, 전자책 리더기(e-book reader), 데스크탑 PC(desktop personal computer), 랩탑 PC(laptop personal computer), 넷북 컴퓨터(netbook computer), 워크스테이션(workstation), 서버, PDA(personal digital assistant), PMP(portable multimedia player), MP3 플레이어, 모바일 의료기기, 카메라(camera), 또는 웨어러블 장치(wearable device) 중 적어도 하나를 포함할 수 있다. 일 실시예에서, 복수의 디바이스(4000)는 가전 제품(home appliance)일 수 있다. 가전 제품은, 예를 들면, 텔레비전, DVD(digital video disk) 플레이어, 오디오, 냉장고, 에어컨, 청소기, 오븐, 전자레인지, 세탁기, 공기 청정기, 셋톱 박스(set-top box), 홈 오토매이션 컨트롤 패널(home automation control panel), 보안 컨트롤 패널(security control panel), 게임 콘솔, 전자 키, 캠코더(camcorder), 또는 전자 액자 중 적어도 하나를 포함할 수 있다.In the embodiment illustrated in FIG. 17, the plurality of devices 4000 include, but are not limited to, an air conditioner 4100, a TV 4200, a washing machine 4300, and a refrigerator 4400. For example, the plurality of devices 4000 includes a smartphone, a tablet PC, a mobile phone, a video phone, an e-book reader, and a desktop personal computer. computer), laptop personal computer, netbook computer, workstation, server, personal digital assistant (PDA), portable multimedia player (PMP), MP3 player, mobile medical device, camera ), or a wearable device. In one embodiment, the plurality of devices 4000 may be home appliances. Home appliances include, for example, televisions, digital video disk (DVD) players, audio, refrigerators, air conditioners, vacuum cleaners, ovens, microwave ovens, washing machines, air cleaners, set-top boxes, and home automation controls. It may include at least one of a home automation control panel, a security control panel, a game console, an electronic key, a camcorder, or an electronic frame.

음성 비서 서버(2000)는 수신된 음성 신호에 기초하여, 사용자가 의도하는 동작을 수행할 타겟 디바이스의 타입(type)을 결정할 수 있다. 음성 비서 서버(2000)는 허브 디바이스(1000)로부터 아날로그 신호인 음성 신호를 수신하고, ASR(Automatic Speech Recognition)을 수행하여 음성 부분을 컴퓨터로 판독 가능한 텍스트로 변환할 수 있다. 음성 비서 서버(2000)는 제1 자연어 이해(Natural Language Understanding, NLU) 모델을 이용하여 변환된 텍스트를 해석하고, 해석 결과에 기초하여 타겟 디바이스를 결정할 수 있다. 또한, 음성 비서 서버(2000)는 허브 디바이스(1000)로부터 텍스트의 적어도 일부 및 허브 디바이스(1000)에서 결정한 타겟 디바이스에 대한 정보를 수신할 수 있다. 이 경우, 허브 디바이스(1000)는 허브 디바이스(1000)의 ASR 모델 및 제1 자연어 이해 모델을 이용하여 사용자 음성 신호를 텍스트로 변환하고, 변환된 텍스트를 해석하여 타겟 디바이스를 결정한다. 또한, 허브 디바이스(1000)는 변환된 텍스트의 적어도 일부와 결정된 타겟 디바이스에 대한 정보를 음성 비서 서버(2000)로 전송한다.The voice assistant server 2000 may determine a type of a target device to perform an operation intended by the user based on the received voice signal. The voice assistant server 2000 may receive a voice signal, which is an analog signal, from the hub device 1000 and convert the voice part into computer-readable text by performing ASR (Automatic Speech Recognition). The voice assistant server 2000 may analyze the converted text using a first natural language understanding (NLU) model and determine a target device based on the analysis result. Also, the voice assistant server 2000 may receive at least a part of the text from the hub device 1000 and information on a target device determined by the hub device 1000. In this case, the hub device 1000 converts the user's voice signal into text using the ASR model and the first natural language understanding model of the hub device 1000 and analyzes the converted text to determine a target device. In addition, the hub device 1000 transmits at least a part of the converted text and information on the determined target device to the voice assistant server 2000.

음성 비서 서버(2000)는, 결정된 타겟 디바이스에 대응하는 제2 자연어 이해 모델을 이용하여 사용자가 요청한 타겟 디바이스에서 수행하고자 하는 동작을 판단할 수 있다. 음성 비서 서버(2000)는 IoT 서버(3000)로부터 복수의 디바이스(4000)의 정보를 수신할 수 있다. 음성 비서 서버(2000)는 수신한 복수의 디바이스(4000) 의 정보를 이용하여 타겟 디바이스를 결정할 수 있다. 또한, 음성 비서 서버(2000)는, IoT 서버(3000)을 판단된 동작에 대한 정보를 전달하기 위한 중계 서버로 이용하여 IoT 서버(3000), 타겟 디바이스가 판단된 동작을 실행할 수 있도록 타겟 디바이스를 제어할 수 있다. IoT 서버(3000)는 네트워크를 통해 연결된 기등록된 복수의 디바이스(4000)에 관한 정보를 저장할 수 있다. 일 실시예에서, IoT 서버(3000)는 복수의 디바이스(4000)의 식별 정보(예: 디바이스 id 정보), 복수의 디바이스(4000) 각각의 디바이스 타입, 및 복수의 디바이스(4000) 각각의 기능 수행 능력 정보(capability) 중 적어도 하나를 저장할 수 있다.The voice assistant server 2000 may determine an operation to be performed by the target device requested by the user by using the second natural language understanding model corresponding to the determined target device. The voice assistant server 2000 may receive information on a plurality of devices 4000 from the IoT server 3000. The voice assistant server 2000 may determine a target device by using the received information of the plurality of devices 4000. In addition, the voice assistant server 2000 uses the IoT server 3000 as a relay server for transmitting information on the determined operation, and configures the IoT server 3000 and the target device so that the target device can execute the determined operation. Can be controlled. The IoT server 3000 may store information on a plurality of pre-registered devices 4000 connected through a network. In one embodiment, the IoT server 3000 performs identification information (eg, device ID information) of a plurality of devices 4000, a device type of each of the plurality of devices 4000, and a function of each of the plurality of devices 4000 At least one of capability information may be stored.

일 실시예에서, IoT 서버(3000)는 복수의 디바이스(4000) 각각의 전원 온오프(on/off), 또는 실행하고 있는 동작에 관한 상태 정보를 저장할 수도 있다. IoT 서버(3000)는, 판단된 동작을 실행하기 위한 제어 명령을 복수의 디바이스(4000) 중 타겟 디바이스로 전송할 수 있다. IoT 서버(3000)는, 음성 비서 서버(2000)로부터 결정된 타겟 디바이스에 대한 정보 및 판단된 동작에 대한 정보를 수신하고, 수신한 정보에 기반하여 타겟 디바이스로 제어 명령을 전송할 수 있다.In an embodiment, the IoT server 3000 may store power on/off of each of the plurality of devices 4000 or state information regarding an operation being executed. The IoT server 3000 may transmit a control command for executing the determined operation to a target device among the plurality of devices 4000. The IoT server 3000 may receive information on the determined target device and information on the determined operation from the voice assistant server 2000, and transmit a control command to the target device based on the received information.

도 18a 및 도 18b는 본 개시의 허브 디바이스(1000) 및 음성 비서 서버(2000)에서 실행 가능한 음성비서 모델(200)의 실시예를 도시한 도면이다. 18A and 18B are diagrams illustrating an embodiment of a voice assistant model 200 executable in the hub device 1000 and the voice assistant server 2000 of the present disclosure.

도 18a 및 도 18b를 참조하면, 음성비서 모델(200)은, 소프트웨어로 구현된다. 음성비서 모델(200)은 사용자의 음성 입력으로부터 사용자의 의도를 결정하고, 사용자의 의도와 관련된 타겟 디바이스를 제어하도록 구성될 수 있다. 음성비서 모델(200)은, 음성비서 모델(200)을 통해 제어되는 디바이스가 추가되었을 때, 학습 등을 통해 기존 모델을 새로운 모델로 업데이트하도록 구성된 제1 어시스턴트 모델(200a), 및 추가된 디바이스에 대응하는 모델을 기존 모델에 추가하도록 구성된 제2 어시스턴트 모델(200b)을 포함할 수 있다.18A and 18B, the voice assistant model 200 is implemented in software. The voice assistant model 200 may be configured to determine a user's intention from the user's voice input and control a target device related to the user's intention. The voice assistant model 200 includes a first assistant model 200a configured to update an existing model to a new model through training, etc., when a device controlled through the voice assistant model 200 is added, and the added device. It may include a second assistant model 200b configured to add the corresponding model to the existing model.

제1 어시스턴트 모델(200a)은, 사용자 음성 입력을 분석하여 사용자 의도와 관련된 타겟 디바이스를 결정하는 모델이다. 제1 어시스턴트 모델(200a)은, ASR 모델(202), NLG 모델(204), 제1 자연어 이해 모델(300a), 및 디바이스 판단 모델(310)을 포함할 수 있다. 일 실시예에서, 디바이스 판단 모델(310)은 제1 자연어 이해 모델(300a)을 포함하도록 구성될 수 있다. 또 다른 실시예에서, 디바이스 판단 모델(310)과 제1 자연어 이해 모델(300a)을 별도의 구성 요소로 구성될 수 있다.The first assistant model 200a is a model for determining a target device related to a user intention by analyzing a user's voice input. The first assistant model 200a may include an ASR model 202, an NLG model 204, a first natural language understanding model 300a, and a device determination model 310. In an embodiment, the device determination model 310 may be configured to include the first natural language understanding model 300a. In another embodiment, the device determination model 310 and the first natural language understanding model 300a may be configured as separate components.

디바이스 판단 모델(310)은 제1 자연어 이해 모델(300a)의 분석 결과를 이용하여 타겟 디바이스를 결정하는 동작을 수행하기 위한 모델이다. 디바이스 판단 모델(310)은 복수 개의 세부 모델을 포함할 수 있으며, 복수 개의 세부 모델 중 하나가 제1 자연어 이해 모델(300a)일 수 있다. 제1 자연어 이해 모델(300a) 또는 디바이스 판단 모델(310)은 인공지능 모델일 수 있다.The device determination model 310 is a model for performing an operation of determining a target device using the analysis result of the first natural language understanding model 300a. The device determination model 310 may include a plurality of detailed models, and one of the plurality of detailed models may be the first natural language understanding model 300a. The first natural language understanding model 300a or the device determination model 310 may be an artificial intelligence model.

제1 어시스턴트 모델(200a)은, 음성비서 모델(200)을 통해 제어되는 디바이스가 추가되었을 때, 적어도 디바이스 판단 모델(310) 및 제1 자연어 이해 모델(300a)을 학습을 통해 업데이트할 수 있다. 여기서 학습은, 기존 디바이스 판단 모델 및 제1 자연어 이해 모델을 학습하는 데 사용된 학습 데이터와 추가된 디바이스와 관련된 추가 학습 데이터를 모두 이용하여 학습하는 것을 의미할 수 있다. 또한, 학습은, 추가된 디바이스와 관련된 추가 학습 데이터만을 이용하여 디바이스 판단 모델 및 제1 자연어 이해 모델을 업데이트하는 것을 의미할 수 있다.When a device controlled through the voice assistant model 200 is added, the first assistant model 200a may update at least the device determination model 310 and the first natural language understanding model 300a through learning. Here, learning may mean learning by using both the training data used to train the existing device determination model and the first natural language understanding model and additional training data related to the added device. Further, learning may mean updating the device determination model and the first natural language understanding model using only additional learning data related to the added device.

제2 어시스턴트 모델(200b)은, 특정 디바이스에 특화된 모델로, 특정 디바이스가 수행할 수 있는복수의 동작 중에 사용자의 음성 입력에 대응하는 타겟 디바이스가 수행할 동작을 결정하는 모델이다. 도 18a에서 제2 어시스턴트 모델(200b)은, 복수의 제2 자연어 이해 모델(300b), NLG 모델(206), 및 액션 플랜 관리 모델(210)을 포함할 수 있다. 복수의 자연어 이해 모델(300b)은 서로 다른 복수의 디바이스에 각각 대응될 수 있다. 제2 자연어 이해 모델, NLG 모델 및 액션 플랜 관리 모델은 룰 베이스 시스템(rule based system)으로 구현되는 모델일 수 있다. 일 실시예에서, 제2 자연어 이해 모델, NLG 모델, 및 액션 플랜 관리 모델은 인공지능 모델일 수 있다. 복수의 제2 자연어 이해 모델 각각은 복수의 기능 판단 모델 각각의 일부로 구성될 수 있다.The second assistant model 200b is a model specialized for a specific device, and is a model that determines an operation to be performed by a target device corresponding to a user's voice input among a plurality of operations that a specific device can perform. In FIG. 18A, the second assistant model 200b may include a plurality of second natural language understanding models 300b, an NLG model 206, and an action plan management model 210. The plurality of natural language understanding models 300b may correspond to a plurality of different devices, respectively. The second natural language understanding model, NLG model, and action plan management model may be a model implemented as a rule based system. In one embodiment, the second natural language understanding model, the NLG model, and the action plan management model may be artificial intelligence models. Each of the plurality of second natural language understanding models may be configured as a part of each of the plurality of function determination models.

제2 어시스턴트 모델(200b)은, 음성비서 모델(200)을 통해 제어되는 디바이스가 추가되었을 때, 추가된 디바이스에 대응하는 제2 자연어 이해 모델을 추가하도록 구성될 수 있다. 즉, 제2 어시스턴트 모델(200b)은, 기존 복수의 제2 자연어 이해 모델(300b)에 추가된 디바이스에 대응하는 제2 자연어 이해 모델을 더 포함되도록 구성될 수 있다. 이 경우, 제2 어시스턴트 모델(200b)은, 제1 어시스턴트 모델(200a)을 통해 결정된 타겟 디바이스에 대한 정보를 이용하여, 추가된 제2 자연어 이해 모델을 포함하는 복수의 제2 자연어 이해 모델 중, 결정된 타겟 디바이스에 대응하는 제2 자연어 이해 모델을 선택하도록 구성될 수 있다. When a device controlled through the voice assistant model 200 is added, the second assistant model 200b may be configured to add a second natural language understanding model corresponding to the added device. That is, the second assistant model 200b may be configured to further include a second natural language understanding model corresponding to a device added to the plurality of existing second natural language understanding models 300b. In this case, the second assistant model 200b is a plurality of second natural language understanding models including a second natural language understanding model added using information on the target device determined through the first assistant model 200a, It may be configured to select a second natural language understanding model corresponding to the determined target device.

도 18b를 참조하면, 제2 어시스턴트 모델(200b)은, 복수의 액션 플랜 관리 모델과 복수의 NLG 모델을 포함할 수 있다. 도 18b에서, 제2 어시스턴트 모델(200b)에 포함된 복수의 제2 자연어 이해 모델 각각은 도2a의 제2 자연어 이해 모델(300b)에 대응되고, 제2 어시스턴트 모델(200b)에 포함된 복수의 NLG 모델 각각은 도2a의 NLG 모델(206)에 대응되며, 제2 어시스턴트 모델(200b)에 포함된 복수의 액션 플랜 관리 모델 각각은 도2a의 액션 플랜 관리 모델(210)에 대응될 수 있다.Referring to FIG. 18B, the second assistant model 200b may include a plurality of action plan management models and a plurality of NLG models. 18B, each of the plurality of second natural language understanding models included in the second assistant model 200b corresponds to the second natural language understanding model 300b of FIG. 2A, and includes a plurality of second natural language understanding models included in the second assistant model 200b. Each of the NLG models corresponds to the NLG model 206 of FIG. 2A, and each of the plurality of action plan management models included in the second assistant model 200b may correspond to the action plan management model 210 of FIG. 2A.

도 18b에서, 복수의 액션 플랜 관리 모델 각각은 복수의 제2 자연어 이해 모델 각각에 대응되도록 구성될 수 있다. 또한, 복수의 NLG 모델 각각은 복수의 제2 자연어 이해 모델 각각에 대응되도록 구성될 수 있다. 다른 실시예에서, 하나의 NLG 모델이 복수의 제2 자연어 이해 모델에 대응될 수 있으며, 하나의 액션 플랜 관리 모델이 복수의 제2 자연어 이해 모델에 대응되도록 구성될 수 있다.In FIG. 18B, each of the plurality of action plan management models may be configured to correspond to each of the plurality of second natural language understanding models. In addition, each of the plurality of NLG models may be configured to correspond to each of the plurality of second natural language understanding models. In another embodiment, one NLG model may correspond to a plurality of second natural language understanding models, and one action plan management model may be configured to correspond to a plurality of second natural language understanding models.

도 18b에서, 제2 어시스턴트 모델(200b)은, 음성비서 모델(200)을 통해 제어되는 디바이스가 추가되었을 때, 추가된 디바이스에 대응하는 제2 자연어 이해 모델, NLG 모델 및 액션 플랜 관리 모델을 추가하도록 구성될 수 있다.In FIG. 18B, when a device controlled through the voice assistant model 200 is added, the second assistant model 200b adds a second natural language understanding model, an NLG model, and an action plan management model corresponding to the added device. Can be configured to

도 18b에서, 제1 자연어 이해 모델(300a)은, 음성비서(200)를 통해 제어되는 디바이스가 추가되었을 때 학습 등을 통해 새로운 모델로 업데이트되도록 구성될 수 있다. 또한, 디바이스 판단 모델(310)이 제1 자연어 이해 모델(300a)을 포함하도록 구성된 경우, 디바이스 판단 모델(310)은 음성비서(200)를 통해 제어되는 디바이스가 추가되었을 때 학습 등을 통해 기존 모델 전체가 새로운 모델로 업데이트되도록 구성될 수 있다. 제1 자연어 이해 모델(300a) 또는 디바이스 판단 모델(310)은 인공지능 모델일 수 있다. 여기서 학습은, 기존 디바이스 판단 모델 및 제1 자연어 이해 모델을 학습하는 데 사용된 학습 데이터와 추가된 디바이스와 관련된 추가 학습 데이터를 모두 이용하여 학습하는 것을 의미할 수 있다. 또한, 학습은, 추가된 디바이스와 관련된 추가 학습 데이터만을 이용하여 디바이스 판단 모델 및 제1 자연어 이해 모델을 업데이트하는 것을 의미할 수 있다.18B, the first natural language understanding model 300a may be configured to be updated to a new model through learning or the like when a device controlled through the voice assistant 200 is added. In addition, when the device determination model 310 is configured to include the first natural language understanding model 300a, the device determination model 310 is an existing model through learning when a device controlled through the voice assistant 200 is added. The whole can be configured to be updated with the new model. The first natural language understanding model 300a or the device determination model 310 may be an artificial intelligence model. Here, learning may mean learning by using both the training data used to train the existing device determination model and the first natural language understanding model and additional training data related to the added device. Further, learning may mean updating the device determination model and the first natural language understanding model using only additional learning data related to the added device.

도 18b에서, 제2 어시스턴트 모델(200b)은, 음성비서(200)를 통해 제어되는 디바이스가 추가되었을 때 추가된 디바이스에 대응하는 제2 자연어 이해 모델, NLG 모델 및 액션 플랜 관리 모델을 기존 모델에 추가함으로써 업데이트될 수 있다. 제2 자연어 이해 모델, NLG 모델 및 액션 플랜 관리 모델은 룰 베이스 시스템(rule based system)으로 구현되는 모델일 수 있다.18B, the second assistant model 200b includes a second natural language understanding model, an NLG model, and an action plan management model corresponding to the added device when a device controlled through the voice assistant 200 is added to the existing model. It can be updated by adding. The second natural language understanding model, NLG model, and action plan management model may be a model implemented as a rule based system.

도 18b의 일 실시예에서, 제2 자연어 이해 모델, NLG 모델, 및 액션 플랜 관리 모델은 인공지능 모델일 수 있다. 제2 자연어 이해 모델, NLG 모델 및 액션 플랜 관리 모델은 각각 대응하는 디바이스에 따라 하나의 모듈로 관리될 수 있다. 이 경우, 제2 어시스턴트 모델(200-b)는 복수의 디바이스에 각각 대응하는 복수의 제2 어시스턴트 모델(200b-1, 200b-2, 200b-3)을 포함할 수 있다. 예를 들면, TV에 대응하는 제2 자연어 이해 모델, TV에 대응하는 NLG 모델 및 TV에 대응하는 액션 플랜 관리 모델은 TV에 대응하는 제2 어시스턴트 모델(200b-1)로 관리될 수 있다. 또한, 스피커에 대응하는 제2 자연어 이해 모델, 스피커에 대응하는 NLG 모델 및 스피커에 대응하는 액션 플랜 관리 모델은 스피커에 대응하는 제2 어시스턴트 모델(200b-2)로 관리될 수 있다. 또한, 냉장고에 대응하는 제2 자연어 이해 모델, 냉장고에 대응하는 NLG 모델 및 냉장고에 대응하는 액션 플랜 관리 모델은 냉장고에 대응하는 제2 어시스턴트 모델(200b-3)로 관리될 수 있다.In the embodiment of FIG. 18B, the second natural language understanding model, the NLG model, and the action plan management model may be an artificial intelligence model. Each of the second natural language understanding model, the NLG model, and the action plan management model may be managed as one module according to a corresponding device. In this case, the second assistant model 200-b may include a plurality of second assistant models 200b-1, 200b-2, and 200b-3 respectively corresponding to a plurality of devices. For example, the second natural language understanding model corresponding to the TV, the NLG model corresponding to the TV, and the action plan management model corresponding to the TV may be managed as the second assistant model 200b-1 corresponding to the TV. In addition, the second natural language understanding model corresponding to the speaker, the NLG model corresponding to the speaker, and the action plan management model corresponding to the speaker may be managed as the second assistant model 200b-2 corresponding to the speaker. In addition, the second natural language understanding model corresponding to the refrigerator, the NLG model corresponding to the refrigerator, and the action plan management model corresponding to the refrigerator may be managed as the second assistant model 200b-3 corresponding to the refrigerator.

제2 어시스턴트 모델(200b)은, 음성비서 모델(200)을 통해 제어되는 디바이스가 추가되었을 때, 추가된 디바이스에 대응하는 제2 어시스턴트 모델을 추가하도록 구성될 수 있다. 즉, 제2 어시스턴트 모델(200b)은, 기존 복수의 제2 어시스턴트 모델(200b-1~3)에 추가된 디바이스에 대응하는 제2 어시스턴트 모델을 더 포함되도록 구성될 수 있다. 이 경우, 제2 어시스턴트 모델(200b)은, 제1 어시스턴트 모델(200a)을 통해 결정된 타겟 디바이스에 대한 정보를 이용하여, 추가된 디바이스에 대응하는 제2 어시스턴트 모델을 포함하는 복수의 제2 어시스턴트 모델 중, 결정된 타겟 디바이스에 대응하는 제2 어시스턴트 모델을 선택하도록 구성될 수 있다.When a device controlled through the voice assistant model 200 is added, the second assistant model 200b may be configured to add a second assistant model corresponding to the added device. That is, the second assistant model 200b may be configured to further include a second assistant model corresponding to a device added to the existing plurality of second assistant models 200b-1 to 3. In this case, the second assistant model 200b is a plurality of second assistant models including a second assistant model corresponding to the added device using information on the target device determined through the first assistant model 200a. Among them, it may be configured to select a second assistant model corresponding to the determined target device.

본 명세서에서 설명된 허브 디바이스(1000), 음성 비서 서버(2000), 및 복수의 디바이스(4000)에 의해 실행되는 프로그램은 하드웨어 구성요소, 소프트웨어 구성요소, 및/또는 하드웨어 구성요소 및 소프트웨어 구성요소의 조합으로 구현될 수 있다. 프로그램은 컴퓨터로 읽을 수 있는 명령어들을 수행할 수 있는 모든 시스템에 의해 수행될 수 있다. Programs executed by the hub device 1000, the voice assistant server 2000, and the plurality of devices 4000 described herein are a hardware component, a software component, and/or a hardware component and a software component. It can be implemented in combination. A program can be executed by any system capable of executing computer-readable instructions.

소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령어(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. The software may include a computer program, code, instructions, or a combination of one or more of these, configuring the processing unit to operate as desired or processed independently or collectively. You can command the device.

소프트웨어는, 컴퓨터로 읽을 수 있는 저장 매체(computer-readable storage media)에 저장된 명령어를 포함하는 컴퓨터 프로그램으로 구현될 수 있다. 컴퓨터가 읽을 수 있는 기록 매체로는, 예를 들어 마그네틱 저장 매체(예컨대, ROM(read-only memory), RAM(random-access memory), 플로피 디스크, 하드 디스크 등) 및 광학적 판독 매체(예컨대, 시디롬(CD-ROM), 디브이디(DVD: Digital Versatile Disc)) 등이 있다. 컴퓨터가 읽을 수 있는 기록 매체는 네트워크로 연결된 컴퓨터 시스템들에 분산되어, 분산 방식으로 컴퓨터가 판독 가능한 코드가 저장되고 실행될 수 있다. 매체는 컴퓨터에 의해 판독가능하며, 메모리에 저장되고, 프로세서에서 실행될 수 있다. The software may be implemented as a computer program including instructions stored in a computer-readable storage media. Computer-readable recording media include, for example, magnetic storage media (e.g., read-only memory (ROM), random-access memory (RAM), floppy disk, hard disk, etc.) and optical reading media (e.g., CD-ROM (CD-ROM) and DVD (Digital Versatile Disc)). The computer-readable recording medium is distributed over networked computer systems, so that computer-readable codes can be stored and executed in a distributed manner. The medium is readable by a computer, stored in memory, and executed on a processor.

컴퓨터로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장매체가 신호(signal)를 포함하지 않으며 실재(tangible)한다는 것을 의미할 뿐 데이터가 저장매체에 반영구적 또는 임시적으로 저장됨을 구분하지 않는다. The computer-readable storage medium may be provided in the form of a non-transitory storage medium. Here,'non-transient' means that the storage medium does not contain a signal and is tangible, but does not distinguish between semi-permanent or temporary storage of data in the storage medium.

또한, 본 명세서에 개시된 실시예들에 따른 프로그램은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다.In addition, a program according to the embodiments disclosed in the present specification may be provided by being included in a computer program product. Computer program products can be traded between sellers and buyers as commodities.

컴퓨터 프로그램 제품은 소프트웨어 프로그램, 소프트웨어 프로그램이 저장된 컴퓨터로 읽을 수 있는 저장 매체를 포함할 수 있다. 예를 들어, 컴퓨터 프로그램 제품은 디바이스의 제조사 또는 전자 마켓(예를 들어, 구글 플레이 스토어, 앱 스토어)을 통해 전자적으로 배포되는 소프트웨어 프로그램 형태의 상품(예를 들어, 다운로드 가능한 애플리케이션(downloadable application))을 포함할 수 있다. 전자적 배포를 위하여, 소프트웨어 프로그램의 적어도 일부는 저장 매체에 저장되거나, 임시적으로 생성될 수 있다. 이 경우, 저장 매체는 제조사의 서버, 전자 마켓의 서버, 또는 소프트웨어 프로그램을 임시적으로 저장하는 중계 서버의 저장매체가 될 수 있다.The computer program product may include a software program and a computer-readable storage medium in which the software program is stored. For example, a computer program product is a product (for example, a downloadable application) in the form of a software program that is electronically distributed through a device manufacturer or an electronic market (for example, Google Play Store, App Store). It may include. For electronic distribution, at least a part of the software program may be stored in a storage medium or may be temporarily generated. In this case, the storage medium may be a storage medium of a manufacturer's server, an electronic market server, or a relay server temporarily storing a software program.

컴퓨터 프로그램 제품은, 서버 및 디바이스로 구성되는 시스템에서, 서버의 저장매체 또는 디바이스의 저장매체를 포함할 수 있다. 또는, 서버 또는 디바이스와 통신 연결되는 제3의 디바이스(예, 스마트폰)가 존재하는 경우, 컴퓨터 프로그램 제품은 제3의 디바이스의 저장매체를 포함할 수 있다. 또는, 컴퓨터 프로그램 제품은 서버로부터 디바이스 또는 제3 디바이스로 전송되거나, 제3 디바이스로부터 디바이스로 전송되는 소프트웨어 프로그램 자체를 포함할 수 있다.The computer program product may include a storage medium of a server or a storage medium of a device in a system composed of a server and a device. Alternatively, when there is a server or a third device (eg, a smartphone) that is communicatively connected to the device, the computer program product may include a storage medium of the third device. Alternatively, the computer program product may include a software program itself transmitted from a server to a device or a third device, or transmitted from a third device to the device.

이 경우, 서버, 디바이스 및 제3 디바이스 중 하나가 컴퓨터 프로그램 제품을 실행하여 개시된 실시예들에 따른 방법을 수행할 수 있다. 또는, 서버, 디바이스 및 제3 디바이스 중 둘 이상이 컴퓨터 프로그램 제품을 실행하여 개시된 실시예들에 따른 방법을 분산하여 실시할 수 있다.In this case, one of the server, the device, and the third device may execute the computer program product to perform the method according to the disclosed embodiments. Alternatively, two or more of a server, a device, and a third device may execute a computer program product to distribute and implement the method according to the disclosed embodiments.

예를 들면, 서버(예로, IoT 서버 또는 음성 비서 서버 등)가 서버에 저장된 컴퓨터 프로그램 제품을 실행하여, 서버와 통신 연결된 디바이스가 개시된 실시예들에 따른 방법을 수행하도록 제어할 수 있다. For example, a server (eg, an IoT server or a voice assistant server) may execute a computer program product stored in the server, and control a device connected to the server to perform the method according to the disclosed embodiments.

또 다른 예로, 제3 디바이스가 컴퓨터 프로그램 제품을 실행하여, 제3 디바이스와 통신 연결된 디바이스가 개시된 실시예에 따른 방법을 수행하도록 제어할 수 있다. As another example, a third device may execute a computer program product, and a device connected in communication with the third device may be controlled to perform a method according to the disclosed embodiment.

제3 디바이스가 컴퓨터 프로그램 제품을 실행하는 경우, 제3 디바이스는 서버로부터 컴퓨터 프로그램 제품을 다운로드하고, 다운로드된 컴퓨터 프로그램 제품을 실행할 수 있다. 또는, 제3 디바이스는 프리로드된 상태로 제공된 컴퓨터 프로그램 제품을 실행하여 개시된 실시예들에 따른 방법을 수행할 수도 있다.When the third device executes the computer program product, the third device may download the computer program product from the server and execute the downloaded computer program product. Alternatively, the third device may perform a method according to the disclosed embodiments by executing a computer program product provided in a preloaded state.

이상과 같이 실시예들이 비록 한정된 실시예와 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 컴퓨터 시스템 또는 모듈 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.As described above, although the embodiments have been described by the limited embodiments and drawings, various modifications and variations are possible from the above description to those of ordinary skill in the art. For example, the described techniques are performed in a different order from the described method, and/or components such as a computer system or module described are combined or combined in a form different from the described method, or other components or equivalents Even if substituted or substituted by, appropriate results can be achieved.

Claims (30)

허브 디바이스(Hub device)가 디바이스를 제어하는 음성 비서 모델을 저장하는 방법에 있어서,
상기 허브 디바이스와 연결되는 신규 디바이스에 대한 정보를 수신하는 단계;
상기 신규 디바이스에 대한 정보를 수신함에 따라, 음성 비서 서버에, 상기 허브 디바이스에 저장된 디바이스 판단 모델에 대한 업데이트를 요청하는 단계;
상기 음성 비서 서버로부터 상기 업데이트된 디바이스 판단 모델을 수신하여 저장하는 단계;
상기 음성 비서 서버에, 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 요청하는 단계;
상기 음성 비서 서버로부터 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 정보를 수신하고, 수신된 정보에 기반하여 상기 기능 판단 모델을 상기 허브 디바이스에 저장할지 여부를 결정하는 단계; 및
상기 기능 판단 모델을 상기 허브 디바이스에 저장하는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델을 저장하는 단계;
를 포함하는, 방법.
A method for storing a voice assistant model in which a hub device controls a device, the method comprising:
Receiving information on a new device connected to the hub device;
Upon receiving information on the new device, requesting, from a voice assistant server, an update of a device determination model stored in the hub device;
Receiving and storing the updated device determination model from the voice assistant server;
Requesting, from the voice assistant server, information on a function determination model corresponding to the new device;
Receiving information on a function determination model corresponding to the new device from the voice assistant server, and determining whether to store the function determination model in the hub device based on the received information; And
Storing the function determination model corresponding to the new device when it is determined to store the function determination model in the hub device;
Including, the method.
제1 항에 있어서,
상기 기능 판단 모델을 상기 허브 디바이스에 저장하지 않는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 액세스(access) 정보를 수신하는 단계;
를 더 포함하는, 방법.
The method of claim 1,
When it is determined not to store the function determination model in the hub device, receiving access information for a function determination model corresponding to the new device;
The method further comprising.
제2 항에 있어서,
상기 액세스 정보는, 상기 신규 디바이스에 대응하는 기능 판단 모델이 저장된 상기 음성 비서 서버의 식별 정보, 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 상기 음성 비서 서버 내의 상기 기능 판단 모델에 접근할 수 있는 API 정보(Application Programming Interface), 상기 기능 판단 모델의 사용 언어 및 상기 신규 디바이스의 식별 정보 중 적어도 하나를 포함하는, 방법.
The method of claim 2,
The access information includes identification information, location information, IP address information (IP address), MAC address (MAC address) of the voice assistant server in which a function determination model corresponding to the new device is stored, and the function determination in the voice assistant server. A method comprising at least one of API information for accessing a model (Application Programming Interface), a language used for the function determination model, and identification information of the new device.
제1 항에 있어서,
상기 기능 판단 모델을 상기 허브 디바이스에 저장할지 여부를 결정하는 단계는, 상기 허브 디바이스의 리소스(resource) 상태 및 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보에 기초하여 판단하는, 방법.
The method of claim 1,
The method of determining whether to store the function determination model in the hub device is determined based on a resource state of the hub device and information of a function determination model corresponding to the new device.
제1 항에 있어서,
상기 허브 디바이스는, 사용자 계정에 따라 기 등록된 복수의 디바이스 각각에 관한 리소스 상태 정보에 기초하여, 상기 상기 음성 비서 서버에 의해 결정되는, 방법.
The method of claim 1,
The hub device is determined by the voice assistant server based on resource state information for each of a plurality of devices pre-registered according to a user account.
제1 항에 있어서,
상기 허브 디바이스에 로그인된 사용자 계정(user account)에 따라 IoT 서버에 기 등록된 복수의 디바이스 중 적어도 하나의 허브 디바이스 후보(hub device candidate)를 선택하는 단계;
상기 적어도 하나의 허브 디바이스 후보 각각의 사용 이력 정보 및 성능 정보에 기초하여 상기 적어도 하나의 허브 디바이스 후보 중 어느 하나의 디바이스를 결정하는 단계; 및
상기 허브 디바이스를 상기 결정된 디바이스로 대체함으로써, 상기 허브 디바이스를 변경하는 단계;
를 더 포함하는, 방법.
The method of claim 1,
Selecting at least one hub device candidate from among a plurality of devices previously registered in the IoT server according to a user account logged in to the hub device;
Determining any one of the at least one hub device candidate based on usage history information and performance information of each of the at least one hub device candidate; And
Changing the hub device by replacing the hub device with the determined device;
The method further comprising.
제6 항에 있어서,
상기 적어도 하나의 허브 디바이스 후보를 선택하는 단계는,
상기 복수의 디바이스 각각의 상시 전원 공급 여부, 컴퓨팅 파워(computing power), 및 전력 소비량 중 적어도 하나에 기초하여 상기 복수의 디바이스 중 상기 적어도 하나의 허브 디바이스 후보를 선택하는, 방법.
The method of claim 6,
Selecting the at least one hub device candidate,
The method of claim 1, wherein the at least one hub device candidate is selected from among the plurality of devices based on at least one of whether the plurality of devices are always powered on, computing power, and power consumption.
제6 항에 있어서,
상기 적어도 하나의 허브 디바이스 후보 중 어느 하나의 디바이스를 결정하는 단계는,
상기 허브 디바이스에 저장되어 있는 사용 이력 로그(log) 데이터베이스를 분석함으로써, 상기 허브 디바이스 및 상기 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도에 관한 정보를 획득하는 단계;
상기 허브 디바이스에 저장되어 있는 성능 이력 로그(performance history log) 데이터베이스를 분석함으로써, 상기 허브 디바이스 및 상기 적어도 하나의 허브 디바이스 후보 각각의 사용자의 발화 처리 시간에 관한 정보를 획득하는 단계; 및
상기 허브 디바이스 및 상기 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도 정보 및 발화 처리 시간 정보에 기초하여, 상기 허브 디바이스를 대체할 디바이스를 결정하는 단계;
를 포함하는, 방법.
The method of claim 6,
Determining any one device among the at least one hub device candidate,
Acquiring information on a frequency of use of the hub device and each of the at least one hub device candidate by analyzing a usage history log database stored in the hub device;
Analyzing a performance history log database stored in the hub device, thereby obtaining information on a speech processing time of each user of the hub device and the at least one hub device candidate; And
Determining a device to replace the hub device based on frequency information and speech processing time information of each of the hub device and the at least one hub device candidate;
Including, the method.
제6 항에 있어서,
상기 복수의 디바이스 중 상기 적어도 하나의 허브 디바이스 후보를 선택하는 단계는,
상기 허브 디바이스와 연결되는 신규 디바이스에 대한 정보를 수신하는 단계 이후에 수행되는, 방법.
The method of claim 6,
Selecting the at least one hub device candidate from among the plurality of devices,
The method performed after receiving information on a new device connected to the hub device.
제6 항에 있어서,
상기 허브 디바이스에 로그인된 사용자 계정(user account)에 따라 IoT 서버에 기 등록된 복수의 디바이스 중 어느 하나의 디바이스를 선택하는 사용자 입력을 수신하는 단계; 및
상기 사용자 입력에 기초하여 선택된 디바이스를 상기 허브 디바이스로 결정하는 단계;
를 더 포함하는, 방법.
The method of claim 6,
Receiving a user input for selecting one of a plurality of devices pre-registered in the IoT server according to a user account logged in to the hub device; And
Determining a selected device as the hub device based on the user input;
The method further comprising.
디바이스를 제어하는 음성 비서 모델을 저장하는 허브 디바이스(Hub device)에 있어서,
복수의 디바이스, 음성 비서 서버, 및 IoT 서버 중 적어도 하나와 데이터 통신을 수행하는 통신 인터페이스;
하나 이상의 명령어들(instructions)을 포함하는 프로그램을 저장하는 메모리; 및
상기 메모리에 저장된 프로그램의 하나 이상의 명령어들을 실행하는 프로세서;
를 포함하고,
상기 프로세서는,
상기 허브 디바이스와 연결되는 신규 디바이스에 대한 정보를 수신하고, 상기 신규 디바이스에 대한 정보를 수신함에 따라, 상기 음성 비서 서버에 상기 메모리에 기 저장된 디바이스 판단 모델에 대한 업데이트를 요청하고, 상기 음성 비서 서버로부터 상기 업데이트된 디바이스 판단 모델을 수신하도록 상기 통신 인터페이스를 제어하고,
수신된 상기 업데이트된 디바이스 판단 모델을 상기 메모리에 저장하고,
상기 음성 비서 서버에, 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 요청하고, 상기 음성 비서 서버로부터 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 정보를 수신하도록 상기 통신 인터페이스를 제어하고,
수신된 상기 정보에 기반하여 상기 기능 판단 모델을 상기 허브 디바이스에 저장할지 여부를 결정하고,
상기 기능 판단 모델을 상기 허브 디바이스에 저장하는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델을 상기 메모리에 저장하는, 허브 디바이스.
In the hub device (Hub device) for storing a voice assistant model for controlling the device,
A communication interface for performing data communication with at least one of a plurality of devices, a voice assistant server, and an IoT server;
A memory storing a program including one or more instructions; And
A processor that executes one or more instructions of a program stored in the memory;
Including,
The processor,
Receiving information on a new device connected to the hub device, and upon receiving the information on the new device, requests the voice assistant server to update a device determination model previously stored in the memory, and the voice assistant server Controlling the communication interface to receive the updated device determination model from
Storing the received updated device determination model in the memory,
Requesting information on a function determination model corresponding to the new device from the voice assistant server, and controlling the communication interface to receive information on a function determination model corresponding to the new device from the voice assistant server,
Determine whether to store the function determination model in the hub device based on the received information,
When it is determined to store the function determination model in the hub device, storing a function determination model corresponding to the new device in the memory.
제11 항에 있어서,
상기 프로세서는, 상기 기능 판단 모델을 상기 허브 디바이스에 저장하지 않는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 액세스(access) 정보를 수신하도록 상기 통신 인터페이스를 제어하는, 허브 디바이스.
The method of claim 11,
The processor, when it is determined not to store the function determination model in the hub device, controls the communication interface to receive access information for a function determination model corresponding to the new device.
제12 항에 있어서,
상기 액세스 정보는, 상기 신규 디바이스에 대응하는 기능 판단 모델이 저장된 상기 음성 비서 서버의 식별 정보, 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 상기 음성 비서 서버 내의 상기 기능 판단 모델에 접근할 수 있는 API 정보(Application Programming Interface), 상기 기능 판단 모델의 사용 언어 및 상기 신규 디바이스의 식별 정보 중 적어도 하나를 포함하는, 허브 디바이스.
The method of claim 12,
The access information includes identification information, location information, IP address information (IP address), MAC address (MAC address) of the voice assistant server in which a function determination model corresponding to the new device is stored, and the function determination in the voice assistant server. A hub device comprising at least one of API information (Application Programming Interface) for accessing a model, a language used for the function determination model, and identification information of the new device.
제11 항에 있어서,
상기 프로세서는, 상기 허브 디바이스의 리소스 상태 및 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보에 기초하여, 상기 기능 판단 모델을 상기 메모리에 저장할지 여부를 결정하는, 허브 디바이스.
The method of claim 11,
The processor, based on a resource state of the hub device and information on a function determination model corresponding to the new device, determines whether to store the function determination model in the memory.
제11 항에 있어서,
상기 허브 디바이스는, 사용자 계정에 따라 기 등록된 복수의 디바이스 각각에 관한 리소스 상태 정보에 기초하여, 상기 상기 음성 비서 서버에 의해 결정되는, 허브 디바이스.
The method of claim 11,
The hub device is determined by the voice assistant server based on resource state information for each of a plurality of devices previously registered according to a user account.
제11 항에 있어서,
상기 프로세서는,
상기 허브 디바이스에 로그인된 사용자 계정(user id)에 따라 상기 IoT 서버에 기 등록된 복수의 디바이스 중 적어도 하나의 허브 디바이스 후보(hub device candidate)를 선택하고,
상기 적어도 하나의 허브 디바이스 후보 각각의 사용 이력 정보 및 성능 정보에 기초하여 상기 적어도 하나의 허브 디바이스 후보 중 어느 하나의 디바이스를 결정하고,
상기 허브 디바이스를 상기 결정된 디바이스로 대체함으로써, 상기 허브 디바이스를 변경하는, 허브 디바이스.
The method of claim 11,
The processor,
Selecting at least one hub device candidate from among a plurality of devices pre-registered with the IoT server according to a user account logged in to the hub device,
Determine any one of the at least one hub device candidate based on usage history information and performance information of each of the at least one hub device candidate,
Changing the hub device by replacing the hub device with the determined device.
제16 항에 있어서,
상기 프로세서는,
상기 복수의 디바이스 각각의 상시 전원 공급 여부, 컴퓨팅 파워(computing power), 및 전력 소비량 중 적어도 하나에 기초하여 상기 복수의 디바이스 중 상기 적어도 하나의 허브 디바이스 후보를 선택하는, 허브 디바이스.
The method of claim 16,
The processor,
The hub device, wherein the at least one hub device candidate is selected from among the plurality of devices based on at least one of whether each of the plurality of devices is always powered, computing power, and power consumption.
제16 항에 있어서,
상기 허브 디바이스 및 상기 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도에 관한 정보를 저장하는 사용 이력 로그 데이터베이스; 및
상기 허브 디바이스 및 상기 적어도 하나의 허브 디바이스 후보 각각의 사용자의 발화 처리 시간에 관한 정보를 저장하는 성능 이력 로그(performance history log) 데이터베이스;
를 더 포함하는, 허브 디바이스.
The method of claim 16,
A usage history log database for storing information on a frequency of use of the hub device and each of the at least one hub device candidate; And
A performance history log database for storing information on speech processing time of each user of the hub device and the at least one hub device candidate;
The hub device further comprising.
제18 항에 있어서,
상기 프로세서는,
상기 사용 이력 로그 데이터베이스를 분석함으로써 상기 허브 디바이스 및 상기 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도에 관한 정보를 획득하고, 상기 성능 이력 로그 데이터베이스를 분석함으로써, 상기 허브 디바이스 및 상기 적어도 하나의 허브 디바이스 후보 각각의 사용자의 발화 처리 시간에 관한 정보를 획득하고,
상기 허브 디바이스 및 상기 적어도 하나의 허브 디바이스 후보 각각의 사용 빈도 정보 및 발화 처리 시간 정보에 기초하여, 상기 허브 디바이스를 대체할 디바이스를 결정하는, 허브 디바이스.
The method of claim 18,
The processor,
The hub device and the at least one hub device candidate by analyzing the usage history log database to obtain information on the frequency of use of each of the hub device and the at least one hub device candidate, and by analyzing the performance history log database Obtaining information about each user's utterance processing time,
The hub device to determine a device to replace the hub device based on frequency information and speech processing time information of each of the hub device and the at least one hub device candidate.
제16 항에 있어서,
상기 허브 디바이스에 로그인된 사용자 계정에 따라 IoT 서버에 기 등록된 복수의 디바이스 중 어느 하나의 디바이스를 선택하는 사용자의 음성 입력을 수신하는 음성 입력부;
를 더 포함하고,
상기 프로세서는, ASR(Automatic Speech Recognition)을 수행함으로써, 상기 음성 입력부로부터 수신한 사용자의 음성 입력을 텍스트로 변환하고, NLU 모델(Natural Language Understanding model)을 이용하여 변환된 텍스트를 해석함으로써, 상기 사용자의 음성 입력에 따라 선택된 디바이스를 상기 허브 디바이스로 결정하는, 허브 디바이스.
The method of claim 16,
A voice input unit for receiving a voice input from a user selecting one of a plurality of devices pre-registered in the IoT server according to a user account logged in to the hub device;
Including more,
The processor converts the user's voice input received from the voice input unit into text by performing Automatic Speech Recognition (ASR), and interprets the converted text using a Natural Language Understanding model (NLU). Determining the selected device as the hub device according to the voice input of the device.
음성 비서 서버와 허브 디바이스(Hub device)가 디바이스를 제어하는 음성 비서 모델을 저장하는 방법에 있어서,
상기 허브 디바이스가, 상기 신규 디바이스에 대한 정보를 수신함에 따라, 상기 음성 비서 서버에 상기 허브 디바이스에 저장된 디바이스 판단 모델에 대한 업데이트를 요청하는 단계;
상기 음성 비서 서버는, 상기 디바이스 판단 모델에 대한 업데이트 요청을 수신함에 따라, 상기 허브 디바이스에 저장된 디바이스 판단 모델에 대한 업데이트를 수행하는 단계;
상기 허브 디바이스는, 상기 음성 비서 서버로부터 상기 업데이트된 디바이스 판단 모델을 수신하여 저장하는 단계;
상기 허브 디바이스는, 상기 음성 비서 서버에 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 요청하는 단계;
상기 음성 비서 서버는, 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 획득하여 상기 허브 디바이스로 전송하는 단계; 및
상기 허브 디바이스는, 상기 음성 비서 서버로부터 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 정보를 수신하고, 수신된 정보에 기반하여 상기 기능 판단 모델을 상기 허브 디바이스에 저장할지 여부를 결정하는 단계;
를 포함하는, 방법.
In a method for storing a voice assistant model in which a voice assistant server and a hub device control a device,
As the hub device receives information on the new device, requesting an update of a device determination model stored in the hub device from the voice assistant server;
The voice assistant server, upon receiving an update request for the device determination model, performing an update on the device determination model stored in the hub device;
The hub device receiving and storing the updated device determination model from the voice assistant server;
The hub device, requesting information on a function determination model corresponding to the new device from the voice assistant server;
Obtaining, by the voice assistant server, information on a function determination model corresponding to the new device and transmitting it to the hub device; And
The hub device receiving information on a function determination model corresponding to the new device from the voice assistant server, and determining whether to store the function determination model in the hub device based on the received information;
Including, the method.
제21 항에 있어서,
상기 허브 디바이스는, 상기 기능 판단 모델을 상기 허브 디바이스에 저장하는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델을 저장하는 단계;
를 더 포함하는, 방법.
The method of claim 21,
The hub device, when it is determined to store the function determination model in the hub device, storing a function determination model corresponding to the new device;
The method further comprising.
제21 항에 있어서,
상기 허브 디바이스는, 상기 기능 판단 모델을 상기 허브 디바이스에 저장하지 않는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 액세스 정보를 상기 음성 비서 서버에 요청하여 수신하는 단계;
를 더 포함하는, 방법.
The method of claim 21,
The hub device, when it is determined not to store the function determination model in the hub device, requesting and receiving access information for a function determination model corresponding to the new device from the voice assistant server;
The method further comprising.
제23 항에 있어서,
상기 액세스 정보는, 상기 신규 디바이스에 대응하는 기능 판단 모델이 저장된 상기 음성 비서 서버의 식별 정보, 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 상기 음성 비서 서버 내의 상기 기능 판단 모델에 접근할 수 있는 API 정보(Application Programming Interface), 상기 기능 판단 모델의 사용 언어 및 상기 신규 디바이스의 식별 정보 중 적어도 하나를 포함하는, 방법.
The method of claim 23,
The access information includes identification information, location information, IP address information (IP address), MAC address (MAC address) of the voice assistant server in which a function determination model corresponding to the new device is stored, and the function determination in the voice assistant server. A method comprising at least one of API information for accessing a model (Application Programming Interface), a language used for the function determination model, and identification information of the new device.
제21 항에 있어서,
상기 허브 디바이스는, 사용자 계정에 따라 기 등록된 복수의 디바이스 각각에 관한 리소스 상태 정보에 기초하여, 상기 상기 음성 비서 서버에 의해 결정되는, 방법.
The method of claim 21,
The hub device is determined by the voice assistant server based on resource state information for each of a plurality of devices pre-registered according to a user account.
허브 디바이스(Hub device) 및 음성 비서 서버를 포함하는 시스템에 있어서,
상기 허브 디바이스는,
상기 음성 비서 서버와 데이터 통신을 수행하는 통신 인터페이스;
하나 이상의 명령어들(instructions)을 포함하는 프로그램을 저장하는 메모리; 및
상기 메모리에 저장된 프로그램의 하나 이상의 명령어들을 실행하는 프로세서;
를 포함하고,
상기 프로세서는,
상기 신규 디바이스에 대한 정보를 수신하고, 상기 음성 비서 서버에 상기 메모리에 기 저장된 디바이스 판단 모델에 대한 업데이트를 요청하도록 상기 통신 인터페이스를 제어하고,
상기 음성 비서 서버로부터 상기 업데이트된 디바이스 판단 모델을 수신하고, 수신된 상기 업데이트된 디바이스 판단 모델을 상기 메모리에 저장하고,
상기 음성 비서 서버에 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 요청하고, 상기 음성 비서 서버로부터 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 정보를 수신하도록 상기 통신 인터페이스를 제어하고,
수신된 상기 정보에 기반하여 상기 기능 판단 모델을 상기 허브 디바이스에 저장할지 여부를 결정하고,
상기 음성 비서 서버는,
상기 허브 디바이스로부터 상기 디바이스 판단 모델에 대한 업데이트 요청을 수신함에 따라, 상기 허브 디바이스에 기 저장된 디바이스 판단 모델에 대한 업데이트를 수행하고, 상기 신규 디바이스에 대응하는 기능 판단 모델의 정보를 획득하여 상기 허브 디바이스로 전송하는, 시스템.
A system comprising a hub device and a voice assistant server,
The hub device,
A communication interface for performing data communication with the voice assistant server;
A memory storing a program including one or more instructions; And
A processor that executes one or more instructions of a program stored in the memory;
Including,
The processor,
Receiving information on the new device, controlling the communication interface to request the voice assistant server to update the device determination model previously stored in the memory,
Receiving the updated device determination model from the voice assistant server, storing the received updated device determination model in the memory,
Requesting information on a function determination model corresponding to the new device from the voice assistant server, and controlling the communication interface to receive information on a function determination model corresponding to the new device from the voice assistant server,
Determine whether to store the function determination model in the hub device based on the received information,
The voice assistant server,
Upon receiving an update request for the device determination model from the hub device, the hub device performs an update to the device determination model previously stored in the hub device and obtains information on a function determination model corresponding to the new device. To transfer to, the system.
제26 항에 있어서,
상기 프로세서는, 상기 기능 판단 모델을 상기 허브 디바이스에 저장하는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델을 상기 메모리에 저장하는, 시스템.
The method of claim 26,
The processor, when it is determined to store the function determination model in the hub device, stores a function determination model corresponding to the new device in the memory.
제26 항에 있어서,
상기 프로세서는, 상기 기능 판단 모델을 상기 허브 디바이스에 저장하지 않는 것으로 결정한 경우, 상기 신규 디바이스에 대응하는 기능 판단 모델에 대한 액세스 정보를 상기 음성 비서 서버에 요청하고, 상기 액세스 정보를 상기 음성 비서 서버로부터 수신하도록 상기 통신 인터페이스를 제어하는, 시스템.
The method of claim 26,
When it is determined that the function determination model is not stored in the hub device, the processor requests access information for a function determination model corresponding to the new device to the voice assistant server, and the access information is sent to the voice assistant server. Controlling the communication interface to receive from.
제28 항에 있어서,
상기 액세스 정보는, 상기 신규 디바이스에 대응하는 기능 판단 모델이 저장된 상기 음성 비서 서버의 식별 정보, 위치 정보, IP 주소 정보(IP address), MAC 주소(MAC address), 상기 음성 비서 서버 내의 상기 기능 판단 모델에 접근할 수 있는 API 정보(Application Programming Interface), 상기 기능 판단 모델의 사용 언어 및 상기 신규 디바이스의 식별 정보 중 적어도 하나를 포함하는, 시스템.
The method of claim 28,
The access information includes identification information, location information, IP address information (IP address), MAC address (MAC address) of the voice assistant server in which a function determination model corresponding to the new device is stored, and the function determination in the voice assistant server. A system comprising at least one of API information (Application Programming Interface) for accessing a model, a language used for the function determination model, and identification information of the new device.
제26 항에 있어서,
상기 허브 디바이스는, 사용자 계정에 따라 기 등록된 복수의 디바이스 각각에 관한 리소스 상태 정보에 기초하여, 상기 상기 음성 비서 서버에 의해 결정되는, 시스템.
The method of claim 26,
The hub device is determined by the voice assistant server based on resource state information for each of a plurality of devices previously registered according to a user account.
KR1020200065181A 2019-11-01 2020-05-29 The hub device, multi device system comprising the hub device and a plurality of devices and method operating the same KR102487078B1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN202080070462.4A CN114514575A (en) 2019-11-01 2020-10-30 Hub device, multi-device system including hub device and plurality of devices, and operation method of hub device and multi-device system
PCT/KR2020/015070 WO2021086127A1 (en) 2019-11-01 2020-10-30 Hub device, multi-device system including the hub device and plurality of devices, and operating method of the hub device and multi-device system
EP20881858.3A EP3980992A4 (en) 2019-11-01 2020-10-30 Hub device, multi-device system including the hub device and plurality of devices, and operating method of the hub device and multi-device system
US17/085,565 US11930230B2 (en) 2019-11-01 2020-10-30 Hub device, multi-device system including the hub device and plurality of devices, and operating method of the hub device and multi-device system
US18/397,357 US20240129567A1 (en) 2019-11-01 2023-12-27 Hub device, multi-device system including the hub device and plurality of devices, and operating method of the hub device and multi-device system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20190138767 2019-11-01
KR1020190138767 2019-11-01

Publications (2)

Publication Number Publication Date
KR20210053150A true KR20210053150A (en) 2021-05-11
KR102487078B1 KR102487078B1 (en) 2023-01-11

Family

ID=75915088

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200065181A KR102487078B1 (en) 2019-11-01 2020-05-29 The hub device, multi device system comprising the hub device and a plurality of devices and method operating the same

Country Status (1)

Country Link
KR (1) KR102487078B1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170049817A (en) * 2015-10-29 2017-05-11 주식회사 엘지유플러스 Voice Recognition Device For Voice Recognizing At Home Network And Performance Method of Threof
US20180068663A1 (en) * 2016-09-07 2018-03-08 Samsung Electronics Co., Ltd. Server and method for controlling external device
KR20180054157A (en) * 2016-11-15 2018-05-24 주식회사 엘지유플러스 New IOT(Internet Of Things) device management apparatus and method
US20180174580A1 (en) * 2016-12-19 2018-06-21 Samsung Electronics Co., Ltd. Speech recognition method and apparatus
KR20180105463A (en) * 2017-03-15 2018-09-28 한국전자통신연구원 Operation method of communication node in communication network
US20190202062A1 (en) * 2018-01-04 2019-07-04 Samsung Electronics Co., Ltd. Mobile home robot and controlling method of the mobile home robot

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170049817A (en) * 2015-10-29 2017-05-11 주식회사 엘지유플러스 Voice Recognition Device For Voice Recognizing At Home Network And Performance Method of Threof
US20180068663A1 (en) * 2016-09-07 2018-03-08 Samsung Electronics Co., Ltd. Server and method for controlling external device
KR20180054157A (en) * 2016-11-15 2018-05-24 주식회사 엘지유플러스 New IOT(Internet Of Things) device management apparatus and method
US20180174580A1 (en) * 2016-12-19 2018-06-21 Samsung Electronics Co., Ltd. Speech recognition method and apparatus
KR20180070970A (en) * 2016-12-19 2018-06-27 삼성전자주식회사 Method and Apparatus for Voice Recognition
KR20180105463A (en) * 2017-03-15 2018-09-28 한국전자통신연구원 Operation method of communication node in communication network
US20190202062A1 (en) * 2018-01-04 2019-07-04 Samsung Electronics Co., Ltd. Mobile home robot and controlling method of the mobile home robot

Also Published As

Publication number Publication date
KR102487078B1 (en) 2023-01-11

Similar Documents

Publication Publication Date Title
KR102429436B1 (en) Server for seleting a target device according to a voice input, and controlling the selected target device, and method for operating the same
US20200349940A1 (en) Server for determining target device based on speech input of user and controlling target device, and operation method of the server
KR102373905B1 (en) Shortened voice user interface for assistant applications
US10964327B2 (en) Hub device, multi-device system including the hub device and plurality of devices, and method of operating the same
US20190391541A1 (en) Technologies for conversational interfaces for system control
US11695809B2 (en) System and method for registering device for voice assistant service
KR20200034430A (en) Electronic apparatus, system and method for using speech recognition service
US20240129567A1 (en) Hub device, multi-device system including the hub device and plurality of devices, and operating method of the hub device and multi-device system
JP2020140210A (en) Method and system to handle queries whose intention are unclear in conversational system
KR102411619B1 (en) Electronic apparatus and the controlling method thereof
KR20170049817A (en) Voice Recognition Device For Voice Recognizing At Home Network And Performance Method of Threof
US11295743B1 (en) Speech processing for multiple inputs
US11620996B2 (en) Electronic apparatus, and method of controlling to execute function according to voice command thereof
US20230385377A1 (en) Device, method, and computer program for performing actions on iot devices
KR102487078B1 (en) The hub device, multi device system comprising the hub device and a plurality of devices and method operating the same
KR20200127823A (en) The hub device, multi device system comprising the hub device and a plurality of devices and method operating the same
US11893996B1 (en) Supplemental content output
US20220310066A1 (en) Electronic device for performing task corresponding to voice command and operation method therefor
US20240021205A1 (en) Systems and methods for managing multiple voice assistant services based on voice input
CN110858481B (en) System for processing user speech utterances and method for operating the same
KR20210014053A (en) System and method for registering device for voice assistant service
KR20220090294A (en) Electronic apparatus, system comprising server and controlling method thereof
KR20200129346A (en) Display apparatus and method for controlling thereof

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
AMND Amendment
X701 Decision to grant (after re-examination)