Method and system for controlling a home assistant device
By integrating speaker recognition technology into the digital assistant, it solves the problems of high energy consumption and low recognition accuracy during the voice triggering and recognition process, achieving more efficient and accurate voice assistant control, and is suitable for multi-user environments.
Patent Information
- Application Number
- CN201880074304.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2017-12-31
- Filing Date
- 2018-11-20
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2038-11-20
AI Technical Summary
Existing voice-based digital assistants have problems such as high energy consumption, low recognition accuracy, and false alarm triggering during the voice triggering and recognition process, especially in multi-user environments, resulting in poor user experience.
Using speaker recognition technology, by receiving audio input and performing speaker recognition, speech-to-text conversion and intent inference are performed only when identified as an authorized user, avoiding unnecessary speech recognition and false positive triggers, and allowing each user to define unique Some trigger phrases to improve accuracy.
It effectively reduces energy consumption during the speech recognition process, improves recognition accuracy, reduces false alarm triggers, enhances user experience, and especially provides more accurate voice assistant control in multi-user environments.
Smart Images

Figure CN111357048B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Patent Application No. 62 / 612,551 filed on December 30, 2017, the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0003] The present invention relates generally to digital assistants and, more particularly, to a method and system for controlling a digital assistant using voice-based commands. Background Art
[0004] Recently, voice-based digital assistants, such as Apple's SIRI, Amazon's Echo, Google's Google Assistant, and Microsoft's Cortana, have been introduced to the market to handle a variety of tasks, such as home appliance control, web search, schedule, reminder, etc. The advantage of such voice-based digital assistants is that users can interact with the device in a hands-free manner without touching or even looking at the device. Users can activate the voice-based assistant by pressing a button or selecting an icon on the touch screen or speaking a trigger phrase (e.g., a preset wake-up command).
[0005] Using voice input to activate a voice-based assistant requires monitoring an audio channel to detect voice input. When voice input is detected in the audio channel, voice recognition is performed and the recognized voice text is searched for a trigger phrase. If the trigger phrase is found in the recognized voice text, the voice-based assistant is activated. However, the speech-to-text processing is computationally intensive and consumes a lot of processing energy and reduces the battery life of the handheld device. Further, voice recognition is prone to noise and errors, resulting in reduced recognition accuracy, which further leads to failure to wake up the voice assistant when it is needed, or accidentally waking up the assistant when the user does not need to wake up the assistant.
[0006] Therefore, it would be beneficial to provide a method for activating voice-based and / or voice-based services on a device that effectively improves the efficiency and effectiveness of voice triggering. Summary of the invention
[0007] Therefore, there is a need for a method that can provide a "always listening" voice trigger function without consuming too much limited energy and reducing false positive triggering and trigger failures caused by inaccurate voice recognition or voice to text processing. In addition, sometimes voice assistants use voice output to respond to user commands. If the audio input channel remains open when the voice assistant is outputting voice, the voice output provided by the voice assistant may contain a trigger phrase, then the voice assistant may mistakenly interrupt itself in response to the trigger phrase contained in the voice assistant's own output. There are multiple solutions to this problem: one solution is to disable the audio input channel when the voice assistant is generating voice output. The disadvantage of this solution is that the user is not allowed to interrupt the voice assistant even if the user wants to interrupt. Another solution is to pre-filter the voice output of the voice assistant to confirm the appearance of the trigger phrase, and only disable the audio input channel if the voice output of the voice assistant includes the trigger phrase. In some embodiments, the audio input channel is disabled during the entire process of the voice assistant voice output containing the trigger phrase. In some embodiments, the audio input channel is disabled only during the period when the voice assistant is outputting the trigger phrase. In some embodiments, to perform speaker recognition, if the voice input is confirmed to be the audio output of the voice assistant, the voice recognition is skipped regardless of whether the voice output of the voice assistant includes a trigger phrase. In some embodiments, a family includes multiple members, and the voice of each member is different. If the voice recognition is not performed well, some family members may not be able to successfully use the trigger phrase to trigger the voice assistant, causing user frustration. Further, in some embodiments, each user may be allowed to define his / her own trigger phrase for the same voice assistant. In these cases, speaker recognition is required so that the voice assistant is not accidentally triggered. Further, speaker recognition requires fewer resources than voice recognition, and voice recognition can be skipped if voice input from an unauthorized user is received.
[0008] The embodiments described below provide methods and systems for launching and controlling a voice-based assistant using voice triggering in an electronic device.
[0009] In some embodiments, a method for controlling a voice-based assistant includes: receiving audio input; performing speaker recognition on the audio input; based on determining that the audio input includes voice input from a first user authorized to control a home assistant device: performing speech-to-text conversion on the audio input to obtain a text string; and searching the text string for a predefined trigger word for activating the home assistant device; and based on determining that the audio input includes voice input from the home assistant device: stopping (foregoing) performing speech-to-text conversion on the audio input; and stopping searching for the predefined trigger word.
[0010] According to some embodiments, a computer-readable storage medium (e.g., a non-volatile computer-readable storage medium) is provided, wherein the computer-readable storage medium stores one or more programs for execution by one or more processors in an electronic device, wherein the one or more programs include instructions for performing any of the methods described herein.
[0011] According to some embodiments, there is provided an electronic device (eg, a portable electronic device) comprising components for performing any of the methods described herein.
[0012] According to some embodiments, an electronic device (e.g., a portable electronic device) is provided that includes one or more processors and a memory that stores one or more programs for execution by the one or more processors, the one or more programs including instructions for performing any of the methods described herein.
[0013] According to some embodiments, there is provided an information processing apparatus for use in an electronic device, the information processing apparatus comprising means for performing any of the methods described herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] For a better understanding of the described embodiments, reference should be made to the following detailed description in conjunction with the following drawings, wherein like reference numerals refer to corresponding parts throughout the drawings.
[0015] Figure 1 is a block diagram illustrating an environment in which a digital assistant operates according to some embodiments.
[0016] Figure 2 is a block diagram illustrating a digital assistant client system according to some embodiments.
[0017] Figure 3A is a block diagram illustrating a standalone digital assistant system or a digital assistant server system according to some embodiments.
[0018] Figure 3B is a diagram showing some embodiments of the present invention. Figure 3A Block diagram of the digital assistant functionality shown in .
[0019] Figures 4A-4B is a block diagram illustrating the speaker registration phase and the operation phase of a digital assistant system according to some embodiments.
[0020] Figure 5 is a flow chart illustrating a method for controlling and operating a digital assistant system according to some embodiments.
[0021] Like reference numerals refer to corresponding parts throughout the drawings. DETAILED DESCRIPTION
[0022] The embodiments described below provide systems and methods for activating a voice-based assistant using a voice trigger in an electronic device. Interaction with a voice-based digital assistant (or other voice-based services, such as a voice-to-text transcription service) typically begins when a user presses an affordance (e.g., a button or icon) on the device to activate the digital assistant device, and then the device provides the user with some indication that the digital assistant is activated and listening, such as light, sound (e.g., beep), or vocal output (e.g., "What can I do for you?"). As described herein, voice triggering can also be implemented, so that voice triggering is activated in response to a specific predetermined word, phrase, or sound and no physical interaction is required by the user. For example, a user can activate a voice assistant by reciting a predefined trigger phrase "Hi, assistant!" In response, the device outputs a beep, sound, or voice output (e.g., "What can I do for you?") to indicate to the user that the listening mode has been activated. Therefore, the user does not need to physically touch the device that provides the digital assistant function to initiate interaction with the digital assistant. The digital assistant can be coupled to one or more other devices (e.g., household appliances, smart home devices, etc.) to control the functions of these devices.
[0023] One technique for starting a voice-based service using a voice trigger is to have the voice-based service continuously listen for a predetermined trigger word, phrase, or sound (any of which may be referred to as a "trigger sound" in this article). However, continuously operating the voice-based service (e.g., a voice-based digital assistant) requires a lot of audio processing and battery power. In some embodiments, the trigger sound detector is configured to detect a variety of different trigger sounds, such as a set of words, phrases, sounds, and / or combinations thereof. In some embodiments, different users can predefine different trigger words to use, or give different names to the digital assistant. For example, the digital assistant will respond to the phrase "Hey, ALEX" spoken by one user, and "Wake up, Nora" spoken by another user, as long as these are trigger phrases defined by the user for the digital assistant.
[0024] Figure 1 is a block diagram of an operating environment 100 for a digital home assistant according to some embodiments. The terms "home assistant", "digital assistant", "virtual assistant", "intelligent automated assistant", "voice-based digital assistant", "voice assistant", or "automated digital assistant" refer to any information processing system that understands natural language input in voice and / or text format to infer user intent and performs actions based on the inferred user intent (e.g., performing tasks corresponding to the confirmed task type) (e.g., confirming the task type corresponding to the natural language input). For example, in order to act in accordance with the inferred user intent, the system may perform one or more of the following actions: identify a task flow that contains steps and parameters designed to achieve the inferred user intent (e.g., identify the task type); input specific requirements from the inferred user intent into the task flow, and execute the task flow by calling a program, method, service, API, or the like (e.g., sending a request to a service provider); generate an output response to the user in an audible (e.g., voice) and / or visible form.
[0025] In particular, once started, the home assistant system is capable of accepting user requests, which are at least partially in the form of natural language commands, requests, statements, narratives, and / or inquiries. Typically, user requests seek informational answers or the performance of tasks by a digital device. A satisfactory response to a user request is typically to provide the requested informational answer, the performance of the requested task, or a combination of the two. For example, a user can ask the digital device system a question, such as "What is the temperature in the room now?" Based on the user's current location and the temperature of the surrounding environment, the digital device may answer "The indoor temperature is 80 degrees." The user can also request to perform a task, for example, by stating "Please turn on the air conditioner." In response, the home assistant may inform that the request has been received by generating a voice output "OK, right away", and then continue to turn on the air conditioner in the room through the control API (application interface) pre-restricted in the air conditioner. There are many other ways to interact with the home assistant to request information or request to perform various tasks. In addition, in order to provide verbal responses and take programmed actions, the home assistant can also provide other visual or audio responses (e.g., text, prompt signals, music, video, animation, etc.).
[0026] like Figure 1 As shown, in some embodiments, the digital assistant system can be implemented according to a client-server model. The digital assistant system includes a client-side portion (e.g., 102a and 102b) (hereinafter "digital assistant (DA) client 102") executed on a user device (e.g., 104a and 104b), and a server-side portion 106 (hereinafter "digital assistant (DA) server 106") executed on a server system 108. The DA client 102 communicates with the DA server 106 via one or more networks 110. The DA client 102 provides client-side functions, such as user-oriented input and output processing, and communication with the DA client 106. The DA server 106 provides server-side functions for any number of DA clients 102, each DA client 102 being located on a corresponding user device 104 (also called a client device or electronic device).
[0027] In some embodiments, the DA server 106 includes a client-oriented I / O (input / output) interface 112, one or more processing modules 114, data and models 116, and an I / O interface 118 to external services. The client-oriented I / O interface facilitates the client-oriented input and output processing of the digital assistant server 106. One or more processing modules 114 use the data and models 116 to determine user intent based on natural language input, and perform tasks based on the inferred user intent. In some embodiments, the DA server 106 communicates with multiple external services 120 (e.g., one (multiple) navigation services, one (multiple) messaging services, one (multiple) information services, one (multiple) calendar services, one (multiple) home appliance control services, etc.) via one (multiple) networks 110 to complete tasks or obtain information. The I / O interface with the external service 118 facilitates such communication.
[0028] Examples of user devices 104 include, but are not limited to, a home control center device, a handheld computer, a personal digital assistant (PDA), a tablet computer, a laptop computer, a desktop computer, a cellular phone, a smart phone, an Enhanced General Radio Packet Service (EGPRS) mobile phone, a media player, a navigation device, a game console, a television, a remote control, or a combination of any two or more of these data processing devices or any other suitable data processing devices. Figure 2 An exemplary user device 104 is shown to provide more details regarding the user device 104 .
[0029] Examples of one (or more) communication network 110 include local area networks (LANs) and wide area networks (WANs), such as the Internet. One (or more) communication network 110 can be implemented using any known network protocol, including various wired or wireless protocols, such as Ethernet, Universal Serial Bus (USB), FireWire, Global System for Mobile Communications (GSM), Enhanced Data GSM Environment (EDGE), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Bluetooth, Wi-Fi, Voice over Internet Protocol (VoIP), Wi-MAX, or any other suitable communication protocol.
[0030] The server system 108 can be implemented on at least one data processing device and / or a computer distributed network. In some embodiments, the server system 108 also uses various virtual devices and / or services of a third-party service provider (e.g., a third-party cloud service provider) to provide the underlying computing resources and / or infrastructure resources of the server system 108.
[0031] Although Figure 1The digital assistant system shown includes both a client-side part (e.g., DA client 102) and a server-side part (e.g., DA server 106), but in some embodiments, the digital assistant system refers only to the server-side part (e.g., DA server 106). In some embodiments, the functions of the digital assistant can be implemented as an independent application installed on the user device. In addition, the functional division of the client part and the server part of the digital assistant may be different in different embodiments. For example, in some embodiments, the DA client 102 is a thin client that only provides user-oriented input and output processing functions, and delegates all other functions of the digital assistant to the DA server 106. In some other embodiments, the DA client 102 is configured to perform or assist one or more functions of the DA server 106.
[0032] Figure 2 2 is a block diagram of a user device 104 according to some embodiments. The user device 104 includes a memory interface 202, one or more processors 204, and a peripheral device interface 206. The components in the user device 104 are coupled by one or more communication buses or signal lines. The user device 104 includes various sensors, subsystems, and peripheral devices coupled to the peripheral device interface 206. The sensors, subsystems, and peripheral devices collect information and / or facilitate various functions of the user device 104.
[0033] In some embodiments, user device 104 includes one or more wired and / or wireless communication subsystems 224 that provide communication capabilities. Communication subsystem 224 typically includes various communication ports, radio frequency receivers and transmitters, and / or optical (e.g., infrared) receivers and transmitters.
[0034] In some embodiments, the user device 104 includes an audio subsystem 226 to facilitate voice-enabled functions (e.g., voice recognition, voice replication, digital recording, and telephony functions), which is coupled to one or more speakers 228 and one or more microphones 230. In some embodiments, the audio subsystem 226 is coupled to the voice trigger system 216. In some embodiments, the voice trigger system 216 and / or the audio subsystem 226 include low-power audio circuits and / or programs (i.e., including hardware and / or software) for receiving and / or analyzing sound input, including, for example, one or more analog-to-digital converters, digital signal processing (DSP), sound detectors, memory buffers, codecs, and the like. In some embodiments, the low-power audio circuit (either a separate low-power audio circuit or a low-power audio circuit included in addition to other components of the user device 104) provides voice (or sound) triggering functions to one or more aspects of the user device 104, such as a voice-based digital assistant or other voice-based service. In some embodiments, the low-power audio circuit provides voice triggering functionality even when other components of the user device 104 (e.g., processor(s) 204, I / O subsystem 240, memory 250, and the like) are in off and / or standby mode. In some embodiments, the voice triggering system 216 interacts with or includes a speaker recognition system that facilitates speaker-specific voice triggering functionality of the digital assistant.
[0035] In some embodiments, I / O subsystem 240 is also coupled to peripherals interface 206. I / O subsystem 206 includes input and output controllers for various input and output devices (e.g., a touch screen display, a touch pad, a keyboard, an infrared port, a USB port, and / or a pointer device such as a stylus).
[0036] The memory interface 202 is coupled to the memory 250. In some embodiments, the memory 250 includes a non-transitory computer-readable medium, such as a high-speed random access memory and / or a non-volatile memory (e.g., one or more magnetic disk storage devices, one or more flash memory devices, one or more optical storage devices, and / or other non-volatile solid-state storage devices).
[0037] In some embodiments, the memory 250 stores an operating system 252, a communication module 254, a graphical user interface module 256, a sensor processing module 258, a voice input processing module 260, an application 262, and subsets or supersets thereof. The operating system 252 includes instructions for processing basic system services and performing hardware-related tasks. The communication module 254 facilitates communication with one or more additional devices, one or more computers and / or one or more servers. The graphical user interface module 256 facilitates graphical user interface processing. The sensor processing module 258 facilitates sensor-related processing and functions (e.g., processing voice input received with one or more microphones 228). The voice input processing module 260 facilitates the process and functions of voice input processing. The application module 262 facilitates various functions of user applications, such as electronic messaging, web browsing, media processing, navigation, home appliance control and / or other processing and functions. In some embodiments, the user device 104 stores one or more software applications in the memory 250, each of which is associated with at least one external service provider from a plurality of external service providers.
[0038] As described above, in some embodiments, the memory 250 also stores client-side digital assistant instructions (e.g., in the digital assistant client module 264) and various user data 266 (e.g., user voice samples, user voice printouts, user-specific vocabulary data, preference data, and / or other data, such as the user's electronic address book or contact list, to-do list, shopping list, user preferences for home appliances, etc.) to provide client-side functionality of the digital assistant.
[0039] In various embodiments, the digital assistant client module 264 can accept voice input, text input, touch input, and / or gesture input through various user interfaces of the user device 104 (e.g., the I / O subsystem 244). The digital assistant client module 264 can also provide output in the form of audio, visual, and / or tactile. For example, the output provided can be voice, sound, prompt signal, text message, menu, graphic, video, animation, vibration, and / or a combination of two or more of the above. During operation, the digital assistant client module 264 uses the communication subsystem 224 to communicate with the digital assistant server (e.g., Figure 1 , digital assistant server 106) communicates.
[0040] In some embodiments, the digital assistant client module 264 utilizes various sensors, subsystems, and peripherals to collect additional information from the environment surrounding the user device 104 to establish a context associated with the user input. In some embodiments, the digital assistant client module 264 sends a request to a digital assistant server (e.g., Figure 1, the digital assistant server 106) provides contextual information associated with the user input or a subset thereof to help infer the user's intent.
[0041] In some embodiments, memory 250 may include additional instructions or fewer instructions. Further, various functions of user device 104 may be implemented in hardware and / or firmware, including in one or more signal processing and / or application specific integrated circuits, and thus, user device 104 need not include Figure 2 All modules and applications shown in .
[0042] Figure 3A is a block diagram of an exemplary home assistant system 300 (also referred to as a digital assistant) according to some embodiments. In some embodiments, the home assistant system 300 is implemented on a standalone computer system. In some embodiments, the home assistant system 300 is distributed across multiple computers. In some embodiments, for example, Figure 1 As shown, some modules and functions of the home assistant are divided into a server part and a client part, wherein the client part is located on a user device (e.g., user device 104) and communicates with the server part (e.g., server system 108) through one or more networks. In some embodiments, the home assistant system 300 is Figure 1 In some embodiments, the home assistant system 300 is configured to communicate with the user via a user device (e.g., Figure 1 , user device 104), thereby eliminating the need for a client-server system. It should be noted that the home assistant system 300 is only one example of a home assistant system, and the home assistant system 300 may have more or fewer components than those shown, or may combine two or more components, or may have a different component configuration or arrangement. Figure 3A The various components shown may be implemented in hardware, software, firmware, including one or more signal processing and / or application specific integrated circuits, or any combination thereof.
[0043] The home assistant device 300 includes a memory 302, one or more processors 304, an input / output (I / O) interface 306, and a network communication interface 308. These components communicate with each other via one or more communication buses or signal lines 310.
[0044] In some embodiments, memory 302 includes non-volatile computer-readable media, such as high-speed random access memory and / or non-volatile computer-readable storage media (e.g., one or more disk storage devices, one or more flash memory devices, one or more optical storage devices, and / or other non-volatile solid-state storage devices).
[0045] The I / O interface 306 couples the input / output device 316 (e.g., display, keyboard, touch screen, microphone) of the home assistant system 300 to the user interface module 322. The I / O interface 306, together with the user interface module 322, receives user input (e.g., voice input, keyboard input, touch input, etc.) and processes them accordingly. In some embodiments, when the home assistant is implemented on a separate user device, the home assistant system 300 includes information about Figure 2 In some embodiments, the home assistant system 300 represents a server portion of a home assistant implementation, and any components described in the user device 104 and I / O and communication interfaces (e.g., one or more microphones 230) in the home assistant system 300. Figure 2 The client-side portion on the user device 104 shown in FIG. 1 interacts with the user.
[0046] In some embodiments, the network communication interface 308 includes one (multiple) wired communication ports 312 and / or wireless transmission and reception circuits 314. One (multiple) wired communication ports receive and send communication signals through one or more wired interfaces (e.g., Ethernet, Universal Serial Bus (USB), FireWire, etc.). The wireless circuit 314 typically receives radio frequency signals and / or optical signals from a communication network and other communication devices, and sends radio frequency signals and / or optical signals to a communication network and other communication devices. Wireless communication can use any number of communication standards, protocols and technologies, such as GSM, EDGE, CDMA, TDMA, Bluetooth, Wi-Fi, VoIP, Wi-MAX, or any other appropriate communication protocol. The network communication interface 308 enables the digital assistant system 300 to communicate with a network (e.g., the Internet, an intranet and / or a wireless network, such as a cellular telephone network, a local wireless local area network (LAN) and / or a metropolitan area network (MAN)) and other devices.
[0047] In some embodiments, the non-transitory computer-readable storage medium of memory 302 stores programs, modules, instructions, and data structures, including all or a subset of the following: operating system 324, communication module 320, user interface module 322, one or more applications 324, digital assistant module 326. One or more processors 304 execute these programs, modules, instructions, and read / write from / to data structures.
[0048] The operating system 318 (e.g., Darwin, RTXC, LINUX, UNIX, OS X, iOS, WINDOWS, or an embedded operating system such as VxWorks) includes various software components and / or drivers for controlling and managing general system tasks (e.g., memory management, storage device control, power management, etc.) and facilitates communication between various hardware, firmware, and software components.
[0049] The communication module 320 facilitates communication between the home assistant system 300 and other devices through the network communication interface 308. For example, the communication module 320 can communicate with Figure 2 The communication module 254 of the illustrated device 104 communicates. The communication module 320 also includes various software components for processing data received by the wireless circuit 314 and / or the wired communication port 312.
[0050] In some embodiments, user interface module 322 receives commands and / or input from a user (eg, from a keyboard, touch screen, and / or microphone) through I / O interface 306 and provides user interface objects on a display.
[0051] Applications 324 include programs and / or modules configured to be executed by one or more processors 304. For example, if the digital assistant system is implemented on a stand-alone user device, then applications 324 may include user applications such as a home control center, a game, a calendar application, a navigation application, or an email application. For example, if the home assistant system 300 is implemented on a server farm, then applications 324 may include, for example, a resource management application, a diagnostic application, or a scheduling application.
[0052] The memory 302 also stores a home assistant module (or a server portion of the home assistant) 326. In some embodiments, the home assistant module 326 includes the following submodules, or a subset or superset of the following submodules: an input / output processing module 328, a speech-to-text (STT) processing module 330, a natural language processing module 332, a dialog flow processing module 334, a task flow processing module 336, a service processing module 338, and a speaker recognition module 340. Each of these processing modules can access one or more of the following data and models of the home assistant 326, or a subset or superset of the following data and models: ontology 360, vocabulary index 344, user data 348, task flow model 354, service model 356, speaker voice model 358.
[0053] In some embodiments, using processing modules (e.g., input / output processing module 328, speaker recognition module 340, STT processing module 330, natural language processing module 332, dialog flow processing module 334, task flow processing module 336, and / or service processing module 338), data, and models implemented in digital assistant module 326, home assistant system 300 performs at least some of the following: identifying user intent received from a user expressed in natural language input; actively eliciting and obtaining information required to fully infer user intent (e.g., by eliminating ambiguity of words, names, intents, etc.); determining a task flow for implementing the inferred intent; and executing the task flow to implement the inferred intent. In some embodiments, the home assistant also takes appropriate actions when a satisfactory response is not or cannot be provided to the user for various reasons.
[0054] like Figure 3B As shown, in some embodiments, the I / O processing module 328 Figure 3A The I / O device 316 in the Figure 3A The network communication interface 308 in the user device (eg, Figure 1 The I / O processing module 328 may interact with the user device 104 in the example to obtain user input (e.g., voice input) and provide a response to the user input. Optionally, simultaneously with or shortly after receiving the user input, the I / O processing module 328 obtains context information associated with the user input from the user device. The context information includes user-specific data, vocabulary, and / or preferences associated with the user input. In some embodiments, the context information also includes information about the device (e.g., Figure 1 The I / O processing module 328 may further include information about the software and hardware state of the user device 104 when receiving the user request, and / or information related to the user's surrounding environment when receiving the user request. In some embodiments, the I / O processing module 328 also sends follow-up questions about the user request to the user, and receives answers about the user request from the user. In some embodiments, when the user request is received at the I / O processing module 328 and the user request includes voice input, the I / O processing module 328 forwards the voice input to the speaker recognition module 340 for speaker recognition, and then forwards it to the speech to text (STT) processing module 330 for speech to text conversion. In some embodiments, a person-specific speech to text model is selected to perform speech to text conversion based on the speaker recognition result.
[0055] In some embodiments, the speech-to-text processing module 330 receives speech input (e.g., user speech captured in a speech recording) through the I / O processing module 328 or the speaker recognition module 340. In some embodiments, the speech-to-text processing module 330 uses various acoustic and language models to recognize the speech input as a sequence of phonemes, and ultimately as a sequence of words or tokens written in one or more languages. The speech-to-text processing module 330 is implemented using any suitable speech recognition technology, acoustic model, and language model (e.g., hidden Markov model, speech recognition based on dynamic time warping (DTW), and other statistical and / or analytical techniques). In some embodiments, speech-to-text processing may be performed at least in part by a third-party service or on the user's device. Once the speech-to-text processing module 330 obtains the result of the speech-to-text processing (e.g., a sequence of words or identifiers), it passes the result to the natural language processing module 332 for intent inference.
[0056] The natural language processing module 332 ("NLP") of the home assistant 326 takes the sequence of words or tokens ("token sequence") generated by the speech-to-text processing module 330 and attempts to associate the token sequence with one or more "actionable intents" recognized by the digital assistant. "Actionable intent" as used herein means an actionable intent that can be used by the digital assistant 326 and / or the digital assistant system 300 ( Figure 3A ) and has an associated task flow implemented in the task flow model 354. The associated task flow is a series of programmed operations and steps taken by the digital assistant system 300 to perform a task. The scope of the digital assistant system's capabilities depends on the number and variety of task flows that have been implemented and stored in the task flow model 354, or in other words, on the number and variety of "actionable intents" recognized by the digital assistant system 300. However, the effectiveness of the digital assistant system 300 also depends on the ability of the digital assistant system to infer the correct "actionable intent" from user requests expressed in natural language.
[0057] In some embodiments, in addition to the sequence of words or tokens obtained from the speech-to-text processing module 330, the natural language processor 332 also receives context information associated with the user request (e.g., from the I / O processing module 328). Optionally, the natural language processor 332 uses the context information to clarify, supplement, and / or further qualify the information contained in the sequence of tokens received from the speech-to-text processing module 330. For example, the context information includes user preferences, hardware and / or software status of the user's device, sensor information collected before, during, or shortly after the user's request, a prior interaction (e.g., a conversation) between the digital assistant and the user, and the like.
[0058] In some embodiments, natural language processing is based on ontology 360. Ontology 360 is a hierarchical structure comprising multiple nodes, each node representing an "actionable intent", or an "attribute" related to one or more "actionable intents" in the "actionable intent", or other "attributes". As described above, an "actionable intent" represents a task that the digital assistant system 300 can perform (for example, an "actionable" task or an actionable task). An "attribute" represents a parameter associated with a sub-aspect of an actionable intent or another attribute. In ontology 360, the link between the actionable intent node and the attribute node defines how the parameter represented by the attribute node is associated with the task represented by the actionable intent node.
[0059] In some embodiments, ontology 360 is composed of actionable intention nodes and attribute nodes. In ontology 360, each actionable intention node is linked to one or more attribute nodes directly or through one or more intermediate attribute nodes. Similarly, each attribute node is linked to one or more actionable intention nodes directly or through one or more intermediate attribute nodes.
[0060] An actionable intent node, together with the concept nodes to which it is linked, can be described as a “domain.” In the current discussion, each domain is associated with a respective actionable intent and refers to the group of nodes (and the relationships between nodes) associated with a particular actionable intent.
[0061] In some embodiments, ontology 360 includes all domains that the digital assistant can understand and take action on (and therefore also includes actionable intents). In some embodiments, ontology 360 can be modified, for example, by adding or removing domains or nodes, or by modifying the relationships between nodes within ontology 360.
[0062] In some embodiments, nodes associated with multiple related actionable intents may be clustered under a "superdomain" in ontology 360. For example, the "travel" superdomain may include a cluster of attribute nodes and actionable intent nodes related to travel. Actionable intent nodes related to travel may include "airline booking", "hotel booking", "car rental", "get directions", "find attractions", and the like. Actionable nodes under the same superdomain (e.g., the "travel" superdomain) may have many common attribute nodes. For example, actionable intent nodes such as "airline booking", "hotel booking", "car rental", "get directions", "find attractions" may share one or more of the following attribute nodes: "starting location", "destination", "departure date / time", "arrival date / time", and "party size".
[0063] In some embodiments, each node in ontology 360 is associated with a set of words and / or phrases that are related to the attributes or actionable intent represented by the node. The corresponding set of words and / or phrases associated with each node is a so-called "vocabulary" associated with the node. The corresponding set of words and / or phrases associated with each node can be stored in vocabulary index 344 ( Figure 3B ), the vocabulary index is associated with the attribute or actionable intent represented by the node. For example, returning to Figure 3B , the vocabulary associated with the node of the attribute "restaurant" may include words such as "food", "drinks", "cuisine", "hunger", "eat", "pizza", "fast food", "meal", etc. For another example, the vocabulary associated with the node of the actionable intent "make a phone call" may include words and phrases such as "call", "phone", "dial", "ring", "dial this number", "make a phone call to", etc. Optionally, the vocabulary index 344 includes words and phrases in different languages.
[0064] In some embodiments, Figure 3B The natural language processor 332 shown receives a sequence of tokens (e.g., a text string) from the speech-to-text processing module 330 and determines what node the words in the token sequence refer to. In some embodiments, if a word or phrase in the token sequence is found to be associated with one or more nodes in the ontology 360 (via the vocabulary index 344), the word or phrase will "trigger" or "activate" these nodes. When multiple nodes are "triggered", the natural language processor 332 will select one of the operational intentions as the task (or task type) that the user wants the digital assistant to perform, based on the number and / or relative importance of the activated nodes. In some embodiments, the domain with the most "triggered" nodes is selected. In some embodiments, the domain with the highest confidence value is selected (e.g., based on the relative importance of its respective triggering nodes). In some embodiments, the domain is selected based on a combination of the number and importance of the triggered nodes. In some embodiments, other factors are also considered when selecting nodes, such as whether the home assistant system 300 has previously correctly interpreted similar requests from users.
[0065] In some embodiments, the digital assistant system 300 also stores the names of specific entities in the vocabulary index 344, so that when one of these names is detected in a user request, the natural language processor 332 can recognize that the name refers to a specific instance of an attribute or sub-attribute in the ontology. In some embodiments, the specific entity is the name of a business, restaurant, person, movie, etc. In some embodiments, the digital assistant system 300 can search and identify specific entity names from other data sources (e.g., a user's address book or contact list, a movie database, a music database, and / or a restaurant database). In some embodiments, when the natural language processor 332 recognizes that a word in a tag sequence is the name of a specific entity (e.g., a name in a user's address book or contact list), additional meaning is given to this word when an actionable intent is selected for the user request in the ontology. In some embodiments, the trigger phrase of the digital assistant is stored as a named entity so that it can be recognized and given additional meaning when it is present in the user's voice input.
[0066] User data 348 includes user-specific information, such as a user-specific vocabulary, user preferences, user address, the user's default and second languages, the user's contact list, and other short-term or long-term information for each user. Natural language processor 332 can use user-specific information to supplement the information contained in the user input to further define the user's intent. For example, for a user request to "invite my friends to my birthday party", natural language processor 332 can access user data 348 to determine who the "friends" are and when and where the "birthday party" will be held, rather than requiring the user to explicitly provide such information in his / her request. In some embodiments, user data also includes a user's specific voiceprint or voice sample for speaker recognition training.
[0067] Once the natural language processor 332 identifies an actionable intent (or domain) based on the user request, the natural language processor 332 generates a structured query to represent the identified actionable intent. In some embodiments, the structured query includes parameters of one or more nodes in the domain of the actionable intent, and at least some of the parameters are filled with specific information and requirements specified in the user request. For example, the user may say, "Book me dinner at 7 o'clock at the sushi restaurant", in which case the natural language processor 332 may be able to correctly identify the actionable intent as "restaurant reservation" based on the user input. According to the ontology, the structured query of the "restaurant reservation" domain may include parameters such as {cuisine}, {time}, {date}, {party size}, etc. Based on the information contained in the user's voice, the natural language processor 332 can generate a partial structured query for the restaurant reservation domain, wherein the partial structured query includes parameters {cuisine = "sushi"} and {time = "7 o'clock in the afternoon"}. However, in this example, the user's voice does not contain enough information to complete the structured query associated with the domain. Therefore, other necessary parameters such as {party size} and {date} cannot be specified in the structured query based on the currently available information. In some embodiments, the natural language processor 332 uses the received contextual information to fill in some parameters of the structured query. For example, if the user requests a sushi restaurant "near me", the natural language processor 332 can use the GPS coordinates from the user device 104 to fill in a {location} parameter in the structured query.
[0068] In some embodiments, the natural language processor 332 passes the structured query (including any completed parameters) to the task flow processing module 336 ("task flow processor"). The task flow processor 336 is configured to perform one or more of the following tasks: receiving the structured query from the natural language processor 332, completing the structured query, and performing the actions required to "complete" the user's final request. In some embodiments, the various procedures required to complete these tasks are provided in the task flow model 354. In some embodiments, the task flow model 354 includes procedures for obtaining additional information from the user, and task flows for performing operations associated with actionable intents.
[0069] As described above, in order to complete the structured query, the task flow processor 336 may need to initiate an additional dialogue with the user to obtain additional information, and / or eliminate potential ambiguous speech. When such an interaction is required, the task flow processor 336 calls the dialogue processing module 334 ("dialogue processor") to conduct a dialogue with the user. In some embodiments, the dialogue processing module 334 determines how (and / or when) to ask the user for additional information, and receives and processes the user response. In some embodiments, the user is provided with questions and the user's answer is received by the I / O processing module 328. For example, the dialogue processing module 334 presents the dialogue output to the user through audio and / or visual output, and receives the user's input through voice or physical (such as touch gesture) response. Continuing the above example, when the task flow processor 336 calls the dialogue processor 334 to determine the "party size" and "date" information for the structured query associated with the "restaurant reservation" domain, the dialogue processor 334 generates questions such as "how many people are served?" and "which day?" to pass to the user. Once a response is received from the user, the dialog processing module 334 fills in the missing information into the structured query, or passes the information to the task flow processor 336 to complete the missing information in the structured query.
[0070] Once the task flow processor 336 completes the structured query for the actionable intent, the task flow processor 336 proceeds to execute the final task associated with the actionable intent. Thus, the task flow processor 336 executes the steps and instructions in the task flow model based on the specific parameters contained in the structured query. For example, the task flow model for the actionable intent of "restaurant reservation" may include steps and instructions for contacting a restaurant, as well as steps and instructions for actually requesting a reservation for a specific party size at a specific time. For example, using a structured query such as: {restaurant reservation, restaurant = ABC Cafe, date = 2012.3.12, time = 7pm, size = 5 people}, the task flow processor 336 may perform the following steps: (1) log in to a restaurant reservation system or a server of ABC Cafe, which restaurant reservation system is configured to accept reservations for multiple restaurants such as ABC Cafe, (2) enter the date, time, and party size information on a form on the website, (3) submit the form, and (4) make a calendar entry for the reservation in the user's calendar. In another example, described in more detail below, in response to voice input, the task flow processor 336 (eg, in conjunction with the photo module 132 ) performs steps and instructions associated with tagging or searching for digital photos.
[0071] In some embodiments, the task flow processor 336 uses the assistance of the service processing module 338 ("service processor") to complete the task requested in the user input or provide an informational answer requested in the user input. For example, the service processor 338 can send a command to a home appliance, make a phone call, set a calendar entry, invoke a map search, invoke or interact with other user applications installed on the user device, and invoke or interact with third-party services (e.g., restaurant reservation portals, social networking sites or services, banking portals, etc.) on behalf of the task flow processor 336. In some embodiments, the protocols and application programming interfaces (APIs) required for each service can be specified by the corresponding service model in the service model 356. The service processor 338 accesses the appropriate service model for the service and generates a request for the service according to the protocols and APIs required by the service according to the service model.
[0072] In some embodiments, the natural language processor 332, the dialog processor 334, and the task flow processor 336 are used together and repeatedly to infer and define the user's intent, obtain information to further clarify and refine the user's intent, and finally generate a response (e.g., providing output to the user, or completing a task) to achieve the user's intent.
[0073] In some embodiments, after performing all tasks required to fulfill the user's request, the digital assistant 326 formulates a confirmation response and sends the response back to the user through the I / O processing module 328. If the user request seeks an informational answer, the confirmation response displays the requested information to the user. In some embodiments, the digital assistant also requests the user to indicate whether the user is satisfied with the response generated by the digital assistant 326.
[0074] Figures 4A-4B is a block diagram illustrating methods and systems for controlling a home assistant based on speaker recognition according to some embodiments.
[0075] In some embodiments, the preset trigger word includes a single word or phrase predefined for activating or waking up the home assistant and processing the voice command. The trigger word is also called a wake-up word. When the home assistant device receives a voice input from the user. The automatic speech recognition (ASR) module transcribes the voice input into a text string using a speech-to-text conversion model. If the home assistant device detects that the text string contains a preset wake-up word, the device is woken up and is ready to receive the next voice command and / or process the voice input to determine whether the voice input already contains a voice command.
[0076] Conventional mechanisms for processing voice input have the following problems. First, due to ambient noise, the speaker's accent, and voice quality, if the confidence threshold for identifying trigger words is set low to increase sensitivity to trigger words, the device is often mistakenly activated by similar-sounding voices or background noise. Then, if the confidence threshold for identifying trigger words is set high to reduce the device's sensitivity to trigger words and improve recognition accuracy, the device often fails to be awakened by the trigger words spoken by the user. The default speech-to-text conversion model accommodates the voices and speech patterns of many people, so it is difficult to select the most appropriate confidence threshold to recognize trigger words. Some researchers have suggested using a single user's voice sample to train a user-specific speech-to-text model. However, it is unrealistic to have each user provide enough voice samples to build a speech-to-text conversion model that uses the user's own voice samples. It is also not ideal to gradually retrain the speech-to-text model during use. Home assistants are often used by multiple users in the same family; collecting all voice inputs and adding them to the training corpus without distinguishing the different users who spoke them does not improve the accuracy of the speech-to-text conversion model. On the contrary, such retraining may reduce the accuracy of the speech-to-text model in the family due to conflicting training materials input into the speech-to-text conversion model. Therefore, there is no most appropriate speech-to-text conversion model and increasing user voice input to continuously train the speech-to-text conversion model, and adjusting the confidence value without first performing speaker recognition on the voice input and then biasing a default speech-to-text model for each family member does not work well in practical applications. Home assistants behave slightly differently from digital assistants on personal handheld devices because the home assistant device receives voice input from multiple family members and a single speech-to-text model is not suitable for all family members. In addition, retraining the speech-to-text conversion model is different from simply biasing the average of the default speech-to-text conversion model. Compared with simply biasing the acoustic model of the speech-to-text conversion model based on a small number of voice samples corresponding to the user, which are used to generate the user-specific speech-to-text conversion model, retraining is more time-consuming and requires more training samples.
[0077] Another common problem with using a trigger word to activate a home assistant that always keeps the audio input channel open and searches for the trigger word is that the home assistant can be activated by its own voice. The problematic scenario is when the home assistant has been activated and is in the process of outputting some voice output using the system voice (e.g., a preset simulated human voice), and the system's voice output includes the trigger word. One way to solve this problem is to turn off the audio input channel when the system is generating voice output, however, this means that when the home assistant is generating voice output, the home assistant will not be able to respond to the user's command to interrupt the home assistant.
[0078] Another problem with traditional home assistants is that multiple users in the same family are authorized to control the home assistant. However, it may not be desirable for different members of the same family to have the same access to all functions and devices controlled by the home assistant. For example, a child in the family should be able to use the home assistant to adjust the air conditioner in the room, but not to change the security system of the house. In another example, the cleaning staff in the office should be able to use the home assistant to turn off all the lights in the office building, but not to operate the printer. One possible solution is to establish speaker recognition and prohibit the home assistant from performing the requested task after completing speech-to-text conversion and performing intent inference on the text version of the user's input to determine the user's intent. However, it is a waste to use the entire intent inference capability of the home assistant to infer the user's intent and then determine that the user's intent is a prohibited task. Therefore, a better approach is to confirm the speaker and only use a subset of the intent inference function to infer the user's permitted intent. In other words, if the user is not allowed to operate the printer through the digital assistant, the digital assistant will not activate the domain related to the printer operation when performing intent inference on the text version of the user's voice input. When the digital assistant receives an unauthorized command, it will respond as if it does not understand the unauthorized command. For example, a digital assistant can say, “Sorry, I can’t do that” or “Sorry, I didn’t understand your command.” This way, intent inference is faster and parsing of user input is quicker.
[0079] In the present invention, speaker recognition technology is integrated into the digital assistant system to solve the above problems, especially in the case where multiple family members use the home assistant. After determining the speaker of the voice input, the digital assistant system can take appropriate user-specific actions.
[0080] In some embodiments, the automatic speech recognition model used by the digital assistant is applicable to registered users of the family using sample voice inputs recorded in advance for each user. For example, during the registration process, each authorized user of the digital assistant needs to speak multiple sample voice inputs, which are used to bias the acoustic model of the speech-to-text conversion model for each individual user, and to generate a user-specific speech-to-text conversion model for the individual user. These voice samples are also used to train a speaker recognition model, which can distinguish the voice inputs of different users in the family and distinguish between family users and visitor users. In some embodiments, the voice of the digital assistant system is pre-stored and processed so that the speaker recognition model can also be used to recognize the voice of the digital assistant. In some embodiments, each family member can select a unique simulated voice for the digital assistant, and each simulated voice of the digital assistant is stored and used to recognize the voice of the digital assistant. If the voice input received by the digital assistant matches any simulated voice selected by the family member for the digital assistant, the digital assistant ignores the trigger word recognized in the voice input and does not activate the intention reasoning of the voice input or the voice input subsequently received immediately following the voice input. In some embodiments, there may be multiple digital assistants in a house close to each other, and the simulated voice of each digital assistant has been stored. If the voice input received in the audio channel of a digital assistant is determined to match the simulated voice of one of the digital assistants in the home, the voice input will not activate any digital assistant and will not trigger intent reasoning. In some embodiments, each simulated voice of each digital assistant has a corresponding user-specific and assistant-specific acoustic model for detecting trigger words, which is generated by using a small group of voice samples from different digital assistants in different simulated voices. In some embodiments, the digital assistant or its server maintains a blacklist of system voices for wake-up word detection. This helps to avoid the intent inference process of the digital system being triggered by the digital assistant's own voice output or the voice output of an adjacent digital assistant.
[0081] In some embodiments, after receiving the voice input, a speaker identification process is first performed. If the speaker is identified as one of the registered users of the family, the digital assistant or its server uses the speaker-related speech-to-text model for the identified speaker to perform speech recognition. This will help improve recognition accuracy. In the automatic speech recognition process, as the recognition accuracy is higher, more space is created for the confidence value of detecting the wake-up word.
[0082] In some embodiments, when audio input is detected, speaker identification is performed on the audio input, and if the audio input does not match any of the registered speakers in the home, the audio input is considered background noise and discarded. In some embodiments, when a user-specific acoustic model is used, the threshold for distinguishing background noise from speech is higher than when a generic or default acoustic model is used for the entire home.
[0083] In some embodiments, the digital assistant system references a lookup table to determine whether the identified user who spoke the voice input is allowed to operate or access all functions that the digital assistant can perform. Based on determining that the user is only allowed to access a subset of all functions, the digital assistant identifies the domains that the user is allowed to access and performs intent inference on the text version of the user's voice input using only the domains that the user is allowed to access.
[0084] In some embodiments, the digital assistant system can remember each user's personalized settings and restore their default / last settings when the user turns on certain home appliances through the digital assistant.
[0085] In some embodiments, the digital assistant system can also make some suggestions to the identified user based on his / her past usage data.
[0086] refer to Figure 4A In some embodiments, during the registration phase, a lookup table is created for the digital assistant. The lookup table includes devices that can be controlled by the digital assistant (e.g., X device, Y device, etc.). For a home assistant, devices that can be controlled by a digital assistant may include air conditioners in different rooms, audio systems in the room, home security systems, kitchen appliances, lights in the room, etc. The registration process can continue, and new devices can be added to the lookup table over time. In some embodiments, existing users already registered in the table are given permission to each new device by default. In particular, a user registering a new device can request the digital assistant to change the permission for a specific user in the table from allowed to not allowed. In some embodiments, a new user can be added to the lookup table through the user registration process. Regardless of whether the user is allowed to access all devices in the lookup table, all users in the lookup table are users authorized to control the digital assistant. The lookup table is used as a whitelist of authorized users who have control over the digital assistant. Since the digital assistant is not included in the lookup table, the simulated voice cannot activate the digital assistant and start the intention inference process.
[0087] In some embodiments, a user blacklist is created to indicate which users' voices cannot be used to trigger the intent inference process by using predefined wake-up words. For example, a digital assistant can be included in the user blacklist, and the voice of a guest or a child can be included in the blacklist. Using a blacklist is a powerful measure. When a user or system is included in the blacklist, not only will intent inference not be triggered when a trigger word appears in the audio voice input, but in some embodiments, speech-to-text conversion is also skipped.
[0088] In some embodiments, during the registration process, the digital assistant or its server requests each user being registered to speak some sample voice input, which is recorded and stored by the digital assistant or its server. The digital assistant or its server uses the recorded voice sample input to adapt the automatic speech recognition acoustic model to each registered user and generates a corresponding user-specific acoustic model group for speech recognition for each registered user.
[0089] In some embodiments, a simple way to adapt the default acoustic model of the speech recognition model to a single registered user is to first calculate the average of the acoustic features of the recorded phrases for the registered user. Then, the difference between the speaker-specific means and the speaker-independent means in the acoustic model is determined. In some embodiments, the speaker-independent means of the acoustic model can be prepared in advance by the digital assistant system. During the speech recognition process for the speech input spoken by each single registered user, the speaker-specific differences of the single registered user are taken into account.
[0090] In some embodiments, more complex methods can be used, such as using maximum likelihood linear regression (MLLR), maximum a posteriori (MAP) and eigenvoice methods. Reference information about these methods can be found in, for example, https: / / www.inf.ed.ac.uk / teaching / courses / asr / 2008-9 / asr-adapt-1x2.pdf, https: / / wiki.inf.ed.ac.uk / pub / CSTR / ListenSemester1_2007_8 / kuhn-junqua-eigenvoice-icslp1998.pdf.
[0091] In some embodiments, the recorded phrases received from all registered users are used to train a speaker recognition model. The speaker recognition model is relatively easy to train and lightweight, so that speaker recognition can be performed locally at the speaker's location (e.g., on the home assistant device client side) without server involvement. In some embodiments, once the speaker is identified, the speaker identity can be sent to the server along with the voice input.
[0092] In some embodiments, the user is required to speak the trigger word multiple times, and speaker identification is a text-based speaker identification process. When the user speaks the wake-up word to the digital assistant system, the digital assistant system compares the input speech of the trigger word with a pre-recorded set of trigger words and determines the best matching user.
[0093] In some embodiments, the entire speech is used in a text-dependent speaker recognition process. For example, reference information for text-dependent speaker recognition can be found at https: / / en.wikipedia.org / wiki / Speaker_recognition.
[0094] refer to Figure 4B In some embodiments, during the operation phase of the digital assistant system, the input voice is sent to the voice recognition module and the speaker recognition module respectively. In some embodiments, the voice input is not sent to the voice recognition module until the voice recognition module has identified the speaker as a registered user authorized to control the digital assistant.
[0095] In some embodiments, after the speaker is identified, if the user is identified as one of the registered users in the user whitelist and not in the user blacklist, the digital assistant is activated and ready to perform intent inference. In some embodiments, if the user is not identified as one of the registered users in the whitelist, or is identified as being in the user blacklist, intent inference and / or speech-to-text conversion is skipped.
[0096] In some embodiments, if the user does not have access rights to the assistant-controlled device that the user intends to access, the digital assistant does not take any action to perform the requested action. If the digital assistant determines that the user has rights to the assistant-controlled device, the digital assistant will operate on the specified device according to the user's command and / or restore the user's default / last settings.
[0097] In some embodiments, based on the identified past usage data of the user, the digital assistant provides suggestions or reminders to the user regarding the device the user requested access to.
[0098] According to some embodiments, Figure 5It is a flowchart representing a method of operating a digital assistant such as a home assistant through voice trigger words. Optionally, the method is governed by instructions stored in a computer memory or a non-transient computer-readable storage medium (e.g., the memory 250 of the client device 104, the memory 302 associated with the digital assistant system 300) and executed by one or more processors in one or more computer systems of the digital assistant system, one or more computer systems including but not limited to the server system 108, and / or the user device 104-a. The computer-readable storage medium may include a magnetic or optical disk storage device, a solid-state storage device (such as flash memory), or one or more other non-volatile storage devices. The computer-readable instructions stored on the computer-readable storage medium may include one or more of the following: source code, assembly language code, object code, or other instruction formats interpreted by one or more processors. In various embodiments, some operations in each method may be combined, and / or the order of some operations may be changed relative to the order shown in the figures. Similarly, in some embodiments, the operations shown in each separate figure and / or the operations discussed in association with each separate method may be combined to form other methods, and the operations shown in the same figure and / or the operations discussed in association with the same method may be divided into multiple different methods. In addition, in some embodiments, one or more operations in the method are performed by modules of the digital assistant system 300 and / or the electronic device (e.g., the user device 104), including, for example, a natural language processing module 332, a dialog flow processing module 334, an audio subsystem 226, and / or any sub-modules thereof.
[0099] Figure 5 A method 500 for operating a digital assistant system according to some embodiments is shown. In some embodiments, the method 500 is performed on an electronic device, the electronic device including one or more processors and a memory, the memory storing instructions for execution by the one or more processors (e.g., the electronic device 104). The method includes: receiving (502) an audio input; performing (504) speaker recognition on the audio input; based on determining that the audio input includes a voice input from a first user authorized to control the home assistant device (506): performing a speech-to-text conversion on the audio input to obtain a text string; and searching the text string for a predefined trigger word for activating the home assistant device (e.g., starting intent inference for the next audio input or an audio input that immediately follows the audio input); and based on determining that the audio input includes a voice input from the home assistant device (508): stopping performing a speech-to-text conversion on the audio input; and stopping searching for a predefined trigger word.
[0100] In some embodiments, searching for a predefined trigger word in the text string includes: selecting a trigger word corresponding to the first user from a plurality of preset trigger words, wherein the plurality of preset trigger words correspond to different users among a plurality of users including the first user; and using the trigger word corresponding to the first user as the predefined trigger word to be searched.
[0101] In some embodiments, the method includes: based on determining that the audio input includes voice input from the first user who is authorized to control the home assistant device: selecting one or more first task domains from multiple task domains of the home assistant device to perform intent inference on the text string, wherein the first user is authorized to control the one or more first task domains; and stopping using one or more second task domains among the multiple task domains to process the text input, wherein the first user is not authorized to control the one or more second task domains.
[0102] In some embodiments, the method includes: obtaining a default speech-to-text model corresponding to the home assistant device; and based on determining that the plurality of recorded voice samples provided by the first user are available, adjusting the default speech-to-text model based on the plurality of voice samples provided by the first user to generate a first user-specific speech-to-text model for the first user, wherein performing speech-to-text conversion on the audio input to obtain the text string includes: performing speech-to-text conversion on the audio input using the first user-specific speech-to-text model for the first user. In some embodiments, based on determining that the plurality of recorded voice samples provided by the first user are not available, performing the speech-to-text conversion on the audio input using the default speech-to-text model. In some embodiments, based on determining that the recorded multiple voice samples provided by the first user are available, when the first user-specific voice-to-text model is used to perform the voice-to-text conversion on the audio input, a first confidence threshold for identifying the trigger word in the audio input is set; and based on determining that the recorded multiple voice samples provided by the first user are not available, when the default voice-to-text model is used to perform the voice-to-text conversion on the audio input, a second confidence threshold for identifying the trigger word in the audio input is set. In some embodiments, the first confidence threshold for the first user-specific voice-to-text model is higher than the second confidence threshold for the default voice-to-text model.
[0103] For ease of explanation, the above description is described with reference to specific embodiments. However, the above illustrative discussion is not exhaustive, nor is it intended to limit the disclosed embodiments to the precise form disclosed. In view of the above teachings, many modifications and variations are possible. The embodiments selected and described are intended to best explain the principles and practical applications of the disclosed ideas, thereby enabling others skilled in the art to fully utilize them with various modifications as appropriate for their intended specific use.
[0104] It should be understood that, although the terms "first", "second", etc. may be used to describe various elements in this document, these elements should not be limited by these terms. These terms are only used to distinguish one element from another.
[0105] The terms used herein are only used to describe specific embodiments and are not used to limit the claims. The singular forms "a, an, and the" (a, an, the) used in the description of the embodiments and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to any and all possible combinations of one or more of the listed items that contain multiple associated items. It should further be understood that the terms "including" and / or "comprising" when used in the present application documents, list the existence of the features, integers, steps, operations, elements, and / or components of the description, but do not exclude the existence or increase of one or more other features, integers, steps, operations, elements, components and / or their combinations.
[0106] As used herein, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "upon determining" or "in response to detecting" the stated condition is true, depending on the context. Likewise, the phrase "if it is determined that [the stated condition is true]" or "if [the stated condition is true]" or "when [the stated condition is true]" may be interpreted as "upon determination" or "upon determination" or "in response to determining" or "upon determining" or "upon detecting" or "in response to detecting" the stated condition is true, depending on the context.
Claims
1. A method for controlling a home assistant device, comprising: On a computing system with one or more processors and memory: Receive audio input; performing speaker identification on the audio input; Based on determining that the audio input includes voice input from a first user authorized to control the home assistant device: performing speech-to-text conversion on the audio input to obtain a text string; as well as searching the text string for a predefined trigger word for activating the home assistant device; and Based on determining that the audio input includes voice input from the home assistant device: ceasing to perform speech-to-text conversion on the audio input; and Stop searching for the predefined trigger word; Based on determining that the audio input includes voice input from the first user who is authorized to control the home assistant device: selecting one or more first task domains from a plurality of task domains of the home assistant device to perform intent inference on the text string, wherein the first user is authorized to control the one or more first task domains; One or more second task domains of the plurality of task domains are stopped from being used to process the text input, wherein the first user is not authorized to control the one or more second task domains.
2. The method according to claim 1, wherein: Searching for predefined trigger words in the text string includes: selecting a trigger word corresponding to the first user from a plurality of preset trigger words, wherein the plurality of preset trigger words correspond to different users among a plurality of users including the first user; and The trigger word corresponding to the first user is used as a predefined trigger word to be searched.
3. The method according to claim 1, comprising: obtaining a default speech-to-text model corresponding to the home assistant device; as well as Based on determining that multiple recorded voice samples provided by the first user are available, the default speech-to-text model is adjusted based on the multiple voice samples provided by the first user to generate a first user-specific speech-to-text model for the first user, wherein performing speech-to-text conversion on the audio input to obtain the text string includes: performing speech-to-text conversion on the audio input using the first user-specific speech-to-text model for the first user.
4. The method according to claim 3, comprising: Based on determining that the recorded plurality of voice samples provided by the first user is unavailable, performing the speech-to-text conversion on the audio input using the default speech-to-text model.
5. The method according to claim 4, comprising: In response to determining that a plurality of recorded speech samples provided by the first user are available, setting a first confidence threshold for identifying the trigger word in the audio input when performing the speech-to-text conversion of the audio input using the first user-specific speech-to-text model; as well as Based on determining that the plurality of recorded voice samples provided by the first user are unavailable, setting a second confidence threshold for identifying the trigger word in the audio input when performing the speech-to-text conversion on the audio input using the default speech-to-text model.
6. The method according to claim 5, wherein: The first confidence threshold for the first user-specific speech-to-text model is higher than the second confidence threshold for the default speech-to-text model.
7. A system for controlling a home assistant device, comprising: one or more processors; as well as a memory storing instructions that, when executed by the processor, cause the processor to perform operations comprising: Receive audio input; performing speaker identification on the audio input; Based on determining that the audio input includes voice input from a first user authorized to control the home assistant device: performing speech-to-text conversion on the audio input to obtain a text string; and searching the text string for a predefined trigger word for activating the home assistant device; and According to determining that the audio input includes audio input from the home assistant device: ceasing to perform speech-to-text conversion on the audio input; and Stop searching for the predefined trigger word; Based on determining that the audio input includes voice input from the first user who is authorized to control the home assistant device: selecting one or more first task domains from a plurality of task domains of the home assistant device to perform intent inference on the text string, wherein the first user is authorized to control the one or more first task domains; One or more second task domains of the plurality of task domains are stopped from being used to process the text input, the first user not being authorized to control the one or more second task domains.
8. The system according to claim 7, wherein: Searching the text string for the predefined trigger word includes: selecting a trigger word corresponding to the first user from a plurality of preset trigger words, wherein the plurality of preset trigger words correspond to different users among a plurality of users including the first user; and A trigger word corresponding to the first user is used as the predefined trigger word to be searched.
9. The system according to claim 7, wherein: The operations include: obtaining a default speech-to-text model corresponding to the home assistant device; and Based on determining that multiple recorded voice samples provided by the first user are available, the default speech-to-text model is adjusted based on the multiple voice samples provided by the first user to generate a first user-specific speech-to-text model for the first user, wherein performing speech-to-text conversion on the audio input to obtain the text string includes: performing speech-to-text conversion on the audio input using the first user-specific speech-to-text model for the first user.
10. The system according to claim 9, wherein: The operations include: Based on determining that the recorded plurality of voice samples provided by the first user is unavailable, performing the speech-to-text conversion on the audio input using the default speech-to-text model.
11. The system according to claim 10, wherein: The operations include: In response to determining that a plurality of recorded speech samples provided by the first user are available, setting a first confidence threshold for identifying the trigger word in the audio input when performing the speech-to-text conversion on the audio input using the first user-specific speech-to-text model; and Based on determining that the plurality of recorded voice samples provided by the first user are unavailable, setting a second confidence threshold for identifying the trigger word in the audio input when performing the speech-to-text conversion on the audio input using the default speech-to-text model.
12. The system according to claim 11, wherein: The first confidence threshold for the first user-specific speech-to-text model is higher than the second confidence threshold for the default speech-to-text model.
13. A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the processors to perform operations comprising: Receive audio input; performing speaker identification on the audio input; Based on determining that the audio input includes voice input from a first user who is authorized to control the home assistant device: performing speech-to-text conversion on the audio input to obtain a text string; as well as searching the text string for a predefined trigger word for activating the home assistant device; and Based on determining that the audio input includes voice input from the home assistant device: ceasing to perform speech-to-text conversion on the audio input; and Stop searching for the predefined trigger word; Based on determining that the audio input includes voice input from the first user who is authorized to control the home assistant device: Selecting one or more first task domains from a plurality of task domains of the home assistant device to perform intent inference on the text string, wherein the first user is authorized to control the one or more first task domains; and One or more second task domains of the plurality of task domains are stopped from being used to process text input, wherein the first user is not authorized to control the one or more second task domains.
14. The computer-readable storage medium of claim 13, wherein: Searching the text string for the predefined trigger word includes: selecting a trigger word corresponding to the first user from a plurality of preset trigger words, wherein the plurality of preset trigger words correspond to different users among a plurality of users including the first user; and The trigger word corresponding to the first user is used as the predefined trigger word to be searched.
15. The computer-readable storage medium of claim 13, wherein: The operations include: obtaining a default speech-to-text model corresponding to the home assistant device; and Based on determining that multiple recorded voice samples provided by the first user are available, the default speech-to-text model is adjusted based on the multiple voice samples provided by the first user to generate a first user-specific speech-to-text model for the first user, wherein performing speech-to-text conversion on the audio input to obtain the text string includes: performing speech-to-text conversion on the audio input using the first user-specific speech-to-text model for the first user.
16. The computer-readable storage medium of claim 15, wherein: The operations include: Based on determining that the recorded plurality of voice samples provided by the first user is unavailable, performing the speech-to-text conversion on the audio input using the default speech-to-text model.
17. The computer-readable storage medium of claim 16, wherein: The operations include: In response to determining that a plurality of recorded speech samples provided by the first user are available, setting a first confidence threshold for identifying the trigger word in the audio input when performing the speech-to-text conversion of the audio input using the first user-specific speech-to-text model; and Based on determining that the plurality of recorded voice samples provided by the first user are unavailable, setting a second confidence threshold for identifying the trigger word in the audio input when performing the speech-to-text conversion on the audio input using the default speech-to-text model.
Citation Information
Patent Citations
Method and apparatus providing improved voice activated functions
CN103428363A
Device wake and speaker verification using the same audio input
CN105283836A
Method and apparatus for controlling access to applications
CN105556920A
Control method and control device
CN106331392A
Individualized hotword detection models
CN106373564A
