Detecting and suppressing voice queries
The system addresses the vulnerability of voice-based systems to illegal queries by detecting and suppressing them through digital fingerprinting and blacklisting, ensuring efficient and secure voice query processing.
Patent Information
- Application Number
- JP2024099661
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2017-05-11
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing voice-based systems are vulnerable to illegal voice queries, such as those used in distributed denial of service (DDoS) attacks or media content unintentionally triggering voice queries, leading to computational resource waste and potential security breaches.
A system that detects and suppresses illegal voice queries by aggregating similar queries across multiple devices, generating digital fingerprints, and blacklisting queries that meet certain criteria, using a voice query processing server to identify and prevent unauthorized actions.
Effectively blocks unauthorized voice queries, preventing computational overload and security breaches, while reducing resource consumption and maintaining system integrity.
Smart Images

Figure 2024123147000001
Abstract
Description
[Technical field]
[0001] This specification relates generally to computer-based systems and techniques for recognizing spoken words, otherwise referred to as speech recognition. [Background technology]
[0002] The voice-based client device can be placed in a home, office, or other environment and can turn the environment into a speech-enabled environment. In a speech-enabled environment, a user can speak a query or command to prompt the voice-based client to generate an answer or take another action in response to the user's query or command. To prevent the voice-based client from picking up every utterance made in the speech-enabled environment, the client can be configured to activate only when a predefined hot word is detected in the environment. A hot word, also called an "attention word" or a "voice action initiation command," is generally a predefined word or term that is spoken to attract the system's attention. When the system detects that a user has spoken a hot word, the system can enter a ready state to receive further voice queries. Summary of the Invention [Means for solving the problem]
[0003] This document describes systems, methods, devices, and other techniques for detecting illicit voice queries uttered in an environment of a client device and suppressing actions dictated by such illicit voice queries. In some implementations, a voice-based client may communicate over a network with a voice query processing server system to obtain responses to voice queries detected by the client. While many voice queries received at the server system may be for legitimate purposes (e.g., requesting answers to personal questions or triggering the execution of one-time transactions), not all voice queries may be benign. Some voice queries may be used by malicious actors, for example, to perform distributed denial of service (DDoS) attacks. Other queries may result from media content rather than a human user, such as dialogue in a video that includes a hotword. When the video is played, the hotword, whether intentional or unintentional, may activate the voice-based client into a state where other dialogue in the video is accidentally captured and requested to be processed as a voice query. It will be appreciated that the capturing, transmitting, and / or processing of such dialogue may be considered a waste of computational resources. In some implementations, the techniques disclosed herein can be used to detect illicit voice queries by collecting the same or similar queries received at a server system from multiple client devices over a period of time. If a group of common voice queries meets one or more suppression criteria, the system can blacklist the voice queries to suppress the execution of actions dictated by others, and match them with voice queries the system receives later. In some implementations, the system can identify spikes in traffic in the system, such as a signal to look for potential illicit voice queries that may be trying to exploit the system.
[0004] Some implementations of the subject matter disclosed herein include a computer-implemented method. The method can be performed by one or more computer systems at one or more locations. The system receives requests from a set of client devices to process voice queries detected in a local environment of the set of client devices. The system can then identify that a value based on a number of requests to process voice queries received by the system within a specified time interval satisfies one or more first criteria. In response to identifying that a value based on a number of requests to process voice queries received by the system within a specified time interval satisfies one or more first criteria, the system can analyze at least some of the requests received within the specified time interval to determine a set of requests each identifying a common voice query. The system can generate electronic fingerprints that represent distinct models of the common voice queries. Using the electronic fingerprints of the common voice queries, the system can then identify illegitimate voice queries in requests subsequently received from the client devices. In some implementations, the system inhibits execution of an action indicated by the common voice query in one or more requests subsequently received by the system.
[0005] These and other implementations can optionally include one or more of the following features.
[0006] The system may determine whether the set of requests, each of which identifies a common voice query, satisfies one or more second criteria. Based on whether the set of requests, each of which identifies a common voice query, is determined to satisfy the one or more second criteria, the system may select to generate a fingerprint of the common voice query.
[0007] Determining whether the set of requests, each of which identifies a common voice query, satisfies one or more second criteria may include determining whether a value based on the number of requests in the set of requests, each of which identifies a common voice query, satisfies a threshold value.
[0008] Identifying that a value based on the number of requests to process voice queries received by the system within a specified time interval satisfies the one or more first criteria may include determining that the amount of requests received by the system within the specified time interval satisfies a threshold amount.
[0009] The amount of requests received by the system in a specified time interval may indicate at least one of an absolute number of requests received in the specified time interval, a relative number of requests received in the specified time interval, a percentage of requests received in the specified time interval, or an acceleration of the requests received in the specified time interval.
[0010] Analyzing at least some of the requests received within the specified time interval to determine a set of requests that each identify a common voice query may include generating fingerprints of the voice queries identified by the requests received within the specified time interval and determining matches among the fingerprints.
[0011] The common voice query can include a hot word that will activate the client device and one or more words following the hot word, hi some implementations, the common voice query does not include the hot word.
[0012] Some implementations of the subject matter disclosed herein include another computer-implemented method. The method can be performed by a system of one or more computers at one or more locations. The system receives requests from a set of client devices to process voice queries detected in a local environment of the set of client devices. For each request in at least a subset of the requests, the system can generate a fingerprint of the respective voice query identified by the request. The system can compare the fingerprints of the respective voice queries of the requests in at least the subset of the requests to determine a group of matching fingerprints. For each group in at least the subset of the groups of matching fingerprints, the system determines a respective count indicating the number of matching fingerprints in the group. One or more of the groups of matching fingerprints can be selected by the system based on the count. For each selected group of matching fingerprints, the respective fingerprint based on one or more of the matching fingerprints in the group can be registered with a voice query suppression service, for example, for use in suppressing execution of an action indicated by a subsequently received voice query having a matching fingerprint.
[0013] These and other implementations can optionally include one or more of the following features.
[0014] For each request in at least the subset of requests, the system may generate a fingerprint of each voice query identified by the request by generating a model that unambiguously characterizes at least the audio data for each voice query, and in some cases, the model further identifies a text transcription for each voice query.
[0015] For each selected group of matching fingerprints, the system can register each fingerprint for the group with the voice query suppression service by adding the respective fingerprint to a database of blacklisted voice queries.
[0016] The system may perform further operations including receiving a first request, when sent from a first client device of the set of client devices, to process a first voice query detected in a local environment of the first client device; generating a first fingerprint of the first voice query; comparing the first fingerprint to the fingerprints of the set of blacklisted voice queries; determining whether the first fingerprint matches any of the fingerprints of the set of blacklisted voice queries; and determining to inhibit an action indicated by the first voice query in response to determining that the first fingerprint of the first voice query matches at least one of the fingerprints of the set of blacklisted voice queries.
[0017] The system may select one or more of the groups of matching fingerprints based on one or more of the groups having a count indicating a number of matching fingerprints that is greater than the other numbers of the groups of matching fingerprints.
[0018] The system may select one or more of the groups of matching fingerprints based on one or more of the groups having a count that meets a threshold count.
[0019] The system may further perform operations including sampling particular ones of the received requests to generate the subset of requests, where the system generates a fingerprint for each voice query identified by a request in the subset of requests but not a fingerprint for a voice query identified by a request not in the subset of requests. In some implementations, sampling particular ones of the received requests to generate the subset of requests may include at least one of randomly selecting requests for inclusion in the subset of requests or selecting requests for inclusion in the subset of requests based on one or more characteristics of a client device that submitted the requests.
[0020] The system may further perform operations including, for a first one of the selected groups of matching fingerprints, generating a representative fingerprint for the first group based on the plurality of fingerprints from the first group of matching fingerprints, and registering the representative fingerprint with a voice query suppression service.
[0021] Further innovative aspects of the subject matter disclosed herein include one or more computer-readable media having stored thereon instructions that, when executed by one or more processors, cause the processors to perform operations of the computer-implemented methods disclosed herein. In some implementations, the computer-readable media can be part of a computing system that includes one or more processors and other components.
[0022] Some implementations of the subject matter described herein may achieve one or more of the following advantages in certain cases: The system may block actions indicated in a voice query that dare to compromise a user account or consume computational resources of a client device and / or a server system. In some implementations, the system may identify an illegitimate voice query without human intervention and even if the voice query does not include a predefined marker of an illegitimate voice query. For example, the system may determine that a common set of voice queries issued by devices within a particular geographic area are illegitimate based on a statistical inference that the same voice query will not be voluntarily repeated by a user beyond a threshold amount or frequency within a specified time interval. Thus, the system may classify such commonly occurring voice queries as illegitimate and permanently or temporarily blacklist the queries for all or some users of the system. Additional features and advantages will be understood by those skilled in the art based on the following description, claims, and figures. [Brief description of the drawings]
[0023] [Figure 1A] 1 is a conceptual diagram of an example process for responding to a first voice query and suppressing a second voice query received at a client device. FIG. [Figure 1B] 1 is a conceptual diagram of a voice query processing system in communication with multiple client devices, the system being able to analyze traffic from the multiple devices to identify illicit voice queries. [Figure 2A] 1 is a block diagram of an example voice-based client device. [Figure 2B] FIG. 1 is a block diagram of an example voice query processing server system. [Diagram 3]1 is a flow diagram of an example process for analyzing traffic in a voice query processing system and identifying illegitimate voice queries based on the amount of traffic experienced by the system over time. [Figure 4] 1 is a flow diagram of an example process for analyzing traffic in a voice query processing system and identifying illicit voice queries based on the frequency with which common voice queries occur in the traffic over time. [Diagram 5] FIG. 1 is a swim lane diagram illustrating an example process for detecting illegal voice queries and suppressing voice query activity in a server system. [Figure 6] FIG. 1 is a swim lane diagram illustrating an example process for detecting illegal voice queries and suppressing voice query behavior on a client device. [Figure 7] FIG. 1 illustrates examples of computing devices and mobile computing devices that can be utilized to execute the computer-implemented methods and other techniques disclosed herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] Like numbers and references between the drawings indicate like elements.
[0025] This document describes computer-based systems, methods, devices, and other techniques for detecting and suppressing illicit voice queries. In general, illicit voice queries are voice queries that are not issued under conditions that the voice query processing system deems acceptable so that the voice queries can be safely processed. For example, some illicit voice queries may be issued by malicious actors attempting to use the voice query processing system, for example, to process fraudulent transactions or to cause the execution of operations that purposely consume an unreasonable amount of the system's computational resources. In some implementations, the techniques disclosed herein may be utilized to detect and suppress large-scale events in which voice queries are issued simultaneously or within a short time frame to many voice-based clients (e.g., tens, hundreds, or thousands) in an attempt to overload the backend servers of the voice query processing system. The system may monitor characteristics of incoming voice query processing requests across a population of client devices to identify potential threats and suppress the processing of illicit voice queries. Details of these and additional techniques are described in conjunction with the figures.
[0026] 1A is a conceptual diagram of an example process 100 for responding to a first voice query 118a and suppressing a second voice query 118b. For example, the first voice query 118a may be a legitimate query to which the voice query processing system 108 is configured to respond as expected by the user 104, while the second voice query 118b may be an illegitimate voice query that is blacklisted to prevent the voice query processing system 108 from acting on the query as requested.
[0027] 1A, in stage A1 and stage A2, respectively, the voice query client device 102 receives a first voice query 118a and a second voice query 118b. The client device 102 can be any suitable device capable of receiving voice queries, processing the received voice queries, and interacting with a remotely located voice query processing system 108 to determine how to respond to such queries. For example, the client device 102 can be a smart appliance, a mobile device (e.g., a smartphone, a tablet computer, a notebook computer), a desktop computer, or a wearable computing device (e.g., a smart watch or a virtual reality visor).
[0028] In some implementations, the client device 102 is a voice-based client that relies primarily on voice interaction to receive user input and present information to the user. For example, the device 102 may include one or more microphones and a hotword processor configured to continually listen for predefined hotwords spoken near the device 102 (e.g., in the device 102's local environment). The device 102 may be configured to activate upon detecting ambient audio that includes the predefined hotword. For example, as shown in FIG. 1A, the phrase "Come on voice service" is a hotword that activates the device 102 in a mode that allows the device 102 to receive voice queries. In some implementations, the voice-based client device 102 may facilitate a substantially hands-free experience for the user, such that the user may provide queries and obtain responses without having to physically interact with the device 102 with the user's hands.
[0029] A voice query is generally a string of one or more words spoken to prompt a computing system to perform one or more actions indicated by the words. As an example, the first voice query 118a includes the phrase "How is the traffic to work today?" The first voice query 118a is thus spoken in a natural and conversational manner that can be analyzed by the voice query processing system 108 to determine the meaning of the query and a response to the query. Similarly, the second voice query 118b includes the phrase "How is my calendar looking today?" and is spoken to prompt the client device 102 and / or the voice query processing system 108 to identify events on the user's calendar and present a response to the user. Some voice queries may include a carrier phrase as a prefix indicating a particular action or command to be performed, followed by one or more words indicating parameters of the action or command indicated by the carrier phrase. For example, in the query "please call Teresa's school," the words "please call" are carrier terms that will prompt the execution of a phone dialing operation, while the words "Teresa's school" include a parameter value that indicates the entity that will be dialed in response to the voice query. The carrier phrase may be the same as or different from the hot word for activating the device 102. For example, the user 104 may first speak the hot word "now voice services" to activate the device 102 and then speak the query "please call Teresa's school" to prompt the dialing operation.
[0030] 1A example, the first voice query 118a is spoken by a human user 104, while the second voice query 118b is a recorded or synthesized speech played by a speaker of the audio device 106. The audio device 106 can be any audio source that generates a voice query within audible range of the client device 102, for example, in the same room or other local environment of the client device 102. For example, the audio device 106 can be a television, a multimedia center, a radio, a mobile computing device, a desktop computer, a wearable computing device, or other type of device that includes one or more speakers for playing the voice query.
[0031] In some cases, audio devices 106 may be triggered to play illicit voice queries. For example, an attacker may attempt to overload the voice query processing subsystem 108 by broadcasting the second voice query 118b to many audio devices 106 in separate locations to play many instances of the second voice query 118b in close temporal proximity to each other. Client devices 102 in the vicinity of the audio devices 106 may detect each instance of the second voice query 118b and request the voice query processing system 108 to process the second voice query 118b at substantially the same or similar time. Such distributed attacks may occur by utilizing the playback of a viral online video or broadcasting video content (e.g., a television program or commercial) that includes a voice query with a predefined activation hotword for playback on audio devices 106 in various environments in the vicinity of the client devices 102. As discussed in stages B1 through G2, the system 108 may determine that the first voice query 118a is lawful and may provide a response to the first voice query 118a based on performing the action indicated by the voice query 118a. In contrast, the system 108 may determine that the second voice query 118b is illegal and may therefore choose to inhibit performing the action indicated by the second voice query 118b.
[0032] For each voice query received by the client device 102, the device 102 can generate and send a request to the voice query processing system 108, requesting the voice query processing system 108 to process the received voice query. The request can be, for example, a Hypertext Transfer Protocol (HTTP) message that includes header information and other information identifying the voice query to be processed. In some implementations, the other information identifying the voice query can be audio data for the voice query itself, such that data representing the voice query is embedded in the request. In other implementations, the information identifying the voice query in the request can be an address or other pointer indicating a network location where a copy of the voice query can be accessed. The voice query processing system 108 and the client device 102 can be located remotely from each other and can communicate over one or more networks (e.g., the Internet). The client device 102 can send voice query processing requests 118a, 118b to the voice query processing system 108 over the network, and in response, the voice query processing system 108 can send responses 126a, 126b to the requests 118a, 118b to the client device 102 over the network.
[0033] The audio data representing the voice query indicated in the request may include audio data for the content of the query (e.g., "How's the traffic to work today?" or "How's my calendar looking today?") and, optionally, audio data for an activation hotword that precedes the content of the query (e.g., "Come on voice service")). In some instances, the audio data may further include a representation of the audio that precedes or follows the voice query for a short period of time to provide additional acoustic context to the query. The client device 102 may capture the voice query using a variety of techniques.
[0034] In some implementations, the device 102 can record audio for a period of time (e.g., 2-5 seconds) following detection of the activation hotword. In some implementations, the device 102 can use even more sophisticated endpoint techniques to predict when the user has finished uttering a voice query.
[0035] At stage Bl, the client device 102 sends a first request 122a to the voice query processing system 108. At stage B2, the client device 102 sends a second request 122b to the voice query processing system 108. The requests 122a, 122b include or otherwise identify audio data for the first voice query 118a and the second voice query 118b, respectively. Although operations associated with processing the voice queries 118a and 118b are described here in parallel as an example, in practice the voice queries 118a and 118b can be detected from time to time and processed consecutively and independently of each other.
[0036] In some implementations, upon receiving a request from a client device 102, the voice query processing system 108 inspects the request to determine whether the voice query identified by the request is legitimate. If the voice query is legitimate (e.g., benign), the system 108 may process the voice query as expected by taking the actions indicated by the query. However, if the voice query is deemed illegitimate, the system 108 may refrain from performing one or more actions indicated by the query.
[0037] For example, upon receiving the first voice query processing request 122a, the system 108 may send the request 122a to the gatekeeper 110, which performs a voice query suppression service (Stage C). The gatekeeper 110 generates an electronic fingerprint that clearly defines the first voice query 118a identified by the request 122a. The fingerprint may represent acoustic features derived from the audio data of the first voice query 118a and may optionally include a text transcription of the first voice query 118a. The gatekeeper 110 may then compare the fingerprint for the first voice query 118a to fingerprints stored in the database 112 that are fingerprints of voice queries that have been blacklisted by the system 108 (Stage D).
[0038] In the example of FIG. 1A, no match is identified between the electronic fingerprint for the first voice query 118a and the fingerprint in the database of blacklisted voice queries 112. Thus, the first voice query 118a is certified as a legitimate query and sent to the certified query processing subsystem 116 for further processing. The certified query processing subsystem 116 can transcribe and analyze the first voice query 118a to determine the requested action, and can at least partially perform the requested action (e.g., gather data about traffic conditions on the route to work for the user 104). In contrast, the second voice query 118b is also inspected by the gatekeeper 110 and determined to be an illegitimate voice query having a fingerprint that matches a fingerprint in the database of blacklisted queries 112. As a result, the voice query processing system 108 refrains from fully performing the action indicated by the second voice query 118b. For example, the system 108 may not route the voice query 118b to the certified query processing subsystem 116 in response to determining that the voice query 118b is not a legitimate query.
[0039] In stage G1, the voice query processing system 108 returns a response 126a to the client device's first request 122a. The response 126a can be text or other data that the client device 102 can process using a speech synthesizer to generate an audible response to the user's question about, for example, current traffic conditions on the route to the work site. In some implementations, the voice query processing system 108 includes a speech synthesizer that generates an audio file that is sent to the client device 102 for playback as a response to the first query 118a. However, because the second query 118b was determined to be illegal, the system 108 does not send a substantive response to the question about the current day's calendar events as instructed by the second voice query 118b. Instead, the system 108 can send an indication 126b that the processing of the second voice query 118b may have been suppressed (e.g., blocked) or not otherwise performed. In other implementations, the voice query processing system 108 may not send any message to the client device 102 in response to a blocked request to identify an illegitimate voice query. The client device 102 may instead, for example, abort waiting for a response from the system 108. Upon aborting, the device 102 may re-enter a state in which it prepares to receive another voice query by listening for an occurrence of the activation hotword in the local environment.
[0040] In some implementations, the voice query processing system 108 further includes a traffic analyzer 114. The traffic analyzer 114 monitors characteristics of requests received by the system over time from a wide range of client devices 102 that the system 108 serves. In general, the traffic analyzer 114 can identify trends in network traffic received from multiple client devices 102 to automatically identify illegitimate voice queries. The traffic analyzer 114 can, for example, determine the amount of requests received over a given time interval for a common voice query. If certain criteria are met, such as a spike in the level of system traffic, an increase in the number of requests received to process a common voice query over time, or a combination of these and other criteria, the traffic analyzer 114 can classify the voice query as illegitimate and add a fingerprint of the query to the database 112. Thus, as long as a fingerprint for the query is registered in the database 112, the gatekeeper 110 can suppress the voice query that corresponds to the blacklisted query. Further details regarding the traffic analyzer 114 are described with respect to FIGS. 2B, 3, and 4.
[0041] Figure 1B is a conceptual diagram of a voice query processing system 108 in communication with multiple client devices 102a-102i. While Figure 1A focused on the interaction between the voice query processing system 108 and a particular client device 102, Figure 1B shows that the system 108 can interact with many client devices 102a-102i in parallel.
[0042] Each of the client devices 102a-102i sends a voice query processing request 118 to the system 108. The system 108 can then inspect the request 118 by the gatekeeper 110 and classify the voice query identified in the request 118 as legitimate or illegitimate. The system 108 can then respond to the request 118 as requested in the voice query or refrain from performing the action indicated by the voice query based on whether the query was classified as legitimate. Furthermore, different ones of the client devices 102a-102i can be geographically distant from each other and located in different acoustic environments. The acoustic environments define an area within the hearing range of a given client device 102 such that the device 102 can detect a voice query uttered at a normal audible level, such as a level spoken by a human (e.g., 60 dB-90 dB). In some environments, multiple client devices can be located within the environment. For example, both the client device 106a and the client device 106b are located in the same acoustic environment 152a. Thus, both device 106a and device 106b can detect the same voice query spoken in the common environment 152a. Other environments, such as environment 152b, can include only a single client device 102 configured to process voice queries uttered in the environment. In some implementations, the system 108 includes a traffic analyzer 114 that analyzes trends in traffic of voice query processing requests received from many different client devices over time. If certain conditions in the traffic patterns are met, the traffic analyzer 114 can identify common voice queries across multiple requests and register all or some of these queries as illegitimate. Future occurrences of illegitimate voice queries can then be detected, and as a result, the system 108 can suppress the execution of actions indicated by the queries.
[0043] 2A and 2B, block diagrams of an example of a client device 200 and an example of a voice query processing server system 250 are shown. The client device 200 can be a computing device in a local acoustic environment configured to detect voice queries uttered in the local environment and to communicate with the voice query processing server system to obtain responses to the detected voice queries. In some implementations, the client device 200 is configured similarly to the client device 102 (FIGS. 1A-1B). The voice query processing server system 250 is a system of one or more computers that can be executed in one or more locations. The system 250 is configured to perform back-end operations on voice query processing requests corresponding to the voice queries detected by the client device 200. The system 250 can communicate with one or more client devices 200 over a network, such as the Internet. In some implementations, the system 250 is configured similarly to the system 108 (FIGS. 1A-1B).
[0044] The client device 200 may include all or some of the components 202-224. In some implementations, the client device 200 is a voice-based client that relies primarily on spoken interactions to receive user input and provide responses to the user. For example, the client device 200 may be located in a local environment, such as an office, a living room of a residence, a kitchen, or a cabin of a vehicle. When powered on, the device 200 may maintain a low-power default state. In the low-power state, the device 200 monitors ambient noise in the local environment until a predefined activation hotword is detected. In response to detecting the occurrence of the activation hotword, the device 200 transitions from the low-power state to an active state in which it can receive and process voice queries.
[0045] To detect activation hot words spoken in the local environment and to receive voice queries, the device 200 may include one or more microphones 202. The device may record audio signals detected by the microphones 202 and process the audio with a hot word processor 204. In some implementations, the hot word processor 204 is configured to process audio signals detected in the local environment of the device 200 to identify occurrences of predefined hot words spoken in the local environment. For example, the hot word processor 204 may determine whether a detected audio signal, or a feature of the detected audio signal, matches a pre-stored audio signal, or a pre-stored feature of the audio signal, for a hot word. If a match is determined, the hot word processor 204 may instruct the controller to trigger the device 200 to wake up so that a voice query following the detected hot word can be captured and processed. In some implementations, the hot word processor 204 is configured to identify hot words in an audio signal by extracting audio features from the audio signal, such as filter bank energy, or Mel-frequency cepstral coefficients. The hot word processor 204 can use classification windows to process these audio features, for example, using a support vector machine, a machine learning neural network, or other model.
[0046] In some implementations, the client device further includes an audio buffer 206 and an audio pre-processor 208. The audio pre-processor 208 receives an analog audio signal from the microphone 202 and converts the analog signal to a digital signal that can be processed by the hot word processor 204 or other components of the client device 200. The pre-processor 208 can amplify, filter, and / or clip the audio signal to a determined length. For example, the pre-processor 208 can generate an audio snippet that contains a single voice query and, optionally, a small amount of audio before the voice query, a small amount of audio immediately after the voice query, or both. The voice query may or may not include an activation hot word that precedes the entity of the query. In some implementations, the audio pre-processor 208 can process the initial audio data for the voice query to generate a feature representation of the voice query, including features (e.g., filter bank energy, spectral coefficients). The digital audio data generated by the pre-processor 208 (e.g., the processed digital waveform representation of the voice query, or the feature representation of the voice query) may be stored in an audio buffer 206 on the device 200.
[0047] Client device 200 may further include an electronic display 212 for presenting visual information to the user, a speaker 214 for presenting audible information to the user, or both. If device 200 is a voice-based client configured primarily for hands-free user interaction based on voice input and speech-based output, device 200 may present responses to user queries using synthesized speech played through speaker 214.
[0048] In some cases, the device 200 may receive illegitimate voice queries that are suppressed to prevent the use of user account information, the client device 200, or the voice query processing server system 250. In some implementations, the client device 200 includes a local gatekeeper 216 for inspecting voice queries detected by the client device 200 and determining whether actions associated with certain voice queries should be suppressed. The gatekeeper 216 may include a fingerprinter 218, a database 220 of blacklisted voice queries, a suppressor 222, and a suppression log 224. The fingerprinter 218 is configured to generate a fingerprint for the voice query. A fingerprint is a model or signature of a voice query that identifies distinctive features of the query. A fingerprint may include an audio component that represents the acoustic characteristics of the query, a text component that represents a transcription of the query, or both. Thus, a fingerprint may model both the substance of the query (what is spoken), which may vary based on the speaker or other factors, as well as the manner in which it is spoken.
[0049] The gatekeeper 216 can compare fingerprints for voice queries detected in the local (e.g., acoustic) environment with fingerprints for blacklisted voice queries stored in the database 220. If the gatekeeper 216 determines a match between the fingerprint and one or more of the fingerprints in the database 220, an instruction can be issued to the suppressor 222. The suppressor 222 suppresses the performance of an action associated with a voice query determined to be illegitimate. In some implementations, the suppressor 222 can block the action from being performed in the first instance. For example, if the query "What meetings do you have with Becky today?" is deemed illegitimate, the suppressor 222 can block the system from accessing calendar data to answer the question. In some implementations, the suppressor 222 can reverse an action that was performed if the query was not immediately identified as illegitimate, but is later determined to be illegitimate. For example, changes to user account settings or financial transactions requested in a voice query can be reversed if the query is determined to be illegitimate after the action was initially performed.
[0050] In some implementations, the gatekeeper 216 maintains a suppression log 224. The suppression log 224 is a data structure stored in memory of the client device 200 that contains data entries representing information about the illegal voice queries and about the suppressed actions associated with the illegal voice queries. The device 200 can periodically transmit information from the suppression log 224 to a remote server system, such as the voice query processing server system 250, for analysis.
[0051] The gatekeeper 216 can examine all voice queries received at the client device 200 to determine whether the voice query is an illegitimate query that corresponds to a blacklisted query. In other implementations, the gatekeeper 216 can select to examine only some voice queries received at the client device 200 rather than all of the voice queries. The selection can be random or based on defined filtering criteria (e.g., every nth voice query received, voice queries received during a certain time period, voice queries received from a particular user).
[0052] The client device 200 may also include a network interface 210 that allows the device 200 to connect to one or more wired or wireless networks. The device 200 may use the network interface 210 to send and receive messages between remote computing systems, for example, over a packet-switched network (e.g., the Internet). In some implementations, the client device 200 obtains fingerprints over a network from a voice query processing server system 250 for addition to a database 220 of blacklisted voice queries. In some implementations, the client device 200 may transmit audio data for a received voice query from the client device 200 to the voice query processing server system 250. The audio data may be transmitted to the system 250 along with a request for the system 250 to process the voice query, including checking the voice query for legitimacy, and to invoke any actions specified in the certified (legitimate) query.
[0053] The voice query processing server system 250 as shown in FIG. 2B is configured to receive a voice query processing request from one or more client devices along with audio data for a voice query identified in the request. The voice query processing system 250 can communicate with the client devices (e.g., the client devices 200) over one or more networks using a network interface 256. In some implementations, the system 250 is distributed among multiple computers at one or more locations. The system 250 can also include a speech recognizer 251, a natural language processor 252, a service hub 254, a gatekeeper 258, and a traffic analyzer 268, or a combination of all or some of the components 251-268.
[0054] The server gatekeeper 258 may perform the same or similar operations as described for the gatekeeper 216 in the client device 200. However, unlike the client-side gatekeeper 216, the server gatekeeper 258 may inspect voice queries from many devices connected to the system 250. As an example, the fingerprinter 260 may process audio data for the voice query to generate a fingerprint of the voice query. The generated fingerprint may be compared to fingerprints registered with a voice query suppression service. The registered fingerprints are stored in a database 262. The suppressor 264 suppresses the actions associated with the illegal voice query. The gatekeeper 258 may classify the voice query as illegal if the query fingerprint matches one of the fingerprints registered in the database 262. In some implementations, the gatekeeper 258 may require an exact match to classify the voice query as illegal. In other implementations, an exact match may not be required. In these implementations, the Gatekeeper 258 may allow a non-zero tolerance to identify matches between fingerprints that are similar enough to confidently indicate that the voice queries from which the fingerprints were derived are the same (e.g., a common voice query). For example, the Gatekeeper 258 may determine a match between the fingerprints if a similarity score representing the similarity between the two fingerprints meets a threshold value. The threshold value represents an acceptable tolerance for the match and may be a fixed value or a dynamic value that varies based on certain parameters. Information about voice queries classified as illicit and about suppressed behavior associated with the illicit voice queries may be stored in the suppression log 266.
[0055] For voice queries that the gatekeeper 258 certifies as legitimate, the query may be processed by a speech recognizer 251, a natural language processor 252, a services hub 254, or a combination thereof. The speech recognizer 251 is configured to process audio data for the voice query and generate a text transcription that identifies the order of words included in the voice query. The natural language processor 252 analyzes the transcription of the voice query to determine the action requested by the voice query and any parameters in the voice query that dictate how the action should be performed. For example, the voice query "Call Bob Thomas" includes a request to perform a call action and includes a called party parameter that indicates that Bob Thomas is to be the recipient of the call. Using information about which actions and parameters were specified in the voice query as indicated by the natural language processor 252, the services hub 254 may then interact with one or more services to perform the action and generate a response to the query. The services hub 254 may be capable of interacting with a wide range of services that can perform a wide range of actions that may be specified in a voice query. Some of the services may be provided in the voice query processing system 250 itself, while other services may be provided in external computing systems.
[0056] In some implementations, the voice query processing system 250 includes a traffic analyzer 268. The traffic analyzer 268 is configured to aggregate and analyze data traffic (e.g., voice query processing requests) received by the system 250 over time. Based on the results of the analysis, the traffic analyzer 268 can identify a portion of the traffic that may be related to an illegitimate voice query. Voice queries associated with such traffic can be blacklisted such that subsequent voice queries that match the blacklisted queries are suppressed. In some implementations, the traffic analyzer 268 can identify an illegitimate voice query without supervision and without a priori knowledge of the voice query. In these and other implementations, the traffic analyzer 268 can further identify an illegitimate voice query without identifying a predefined watermark in the voice query to indicate that an action associated with the voice query should be suppressed (e.g., a television commercial that includes a watermark to prevent activation of a voice-based client device within audible range of the device when an activation hotword is spoken in the commercial).
[0057] The traffic analyzer 268 may include all or some of the components 270-280 shown in FIG. 2B. The fingerprinter 270 is configured to generate electronic fingerprints of voice queries, such as the fingerprinters 218 and 260 in the gatekeepers 216 and 268, respectively. The fingerprint database 272 stores fingerprints for voice queries received by the system 250 over a period of time. The mismatch detector 274 is configured to identify a number of mismatches or matches between fingerprints in the fingerprint database 272. In some implementations, the mismatch detector 274 is configured to blacklist voice queries represented by groups of matching fingerprints in the fingerprint database 272 based on the size of the group. Thus, if the traffic analyzer 268 identifies that a common voice query appears in requests received by the system 250 with sufficient frequency over time as indicated by the size of the matching groups of fingerprints, the common voice query can be blacklisted, for example, by adding the fingerprint of the voice query to the database 262 and / or the database 220.
[0058] In some implementations, the traffic volume analyzer 278 monitors the amount of traffic received at the system 250 over time. The analyzed traffic can be overall, or it can be only a portion of the traffic that the traffic filter 280 has filtered based on criteria such as the geographic location of the user or client device that submitted the voice query, the model of the client device that submitted the voice query, profile information of the user that submitted the query, or a combination of these and other criteria. If the amount of requests received by the system 250 in a given time interval is sufficiently large (e.g., meets a threshold amount), the volume analyzer 278 can activate the mismatch detector 274 to search for illegitimate voice queries in the received traffic. In some implementations, the mismatch detector 274 can identify illegitimate voice queries from a set of traffic based on identifying the occurrence of a common voice query in a significant portion of the traffic. For example, if a threshold number of voice query processing requests from different client devices, or a threshold portion of requests in a sample set of traffic, are determined to contain the same voice query, the analyzer 268 may blacklist the voice query and register a fingerprint of the voice query with the gatekeeper 216 or 258 (e.g., a voice query suppression service).
[0059] In some implementations, the policy manager 276 manages the criteria that the traffic analyzer 268 determines to filter traffic, triggers searches for illegal voice queries, and blacklists common voice queries. In some implementations, the policy manager 276 may expose an application programming interface ("API") or provide a dashboard or other interface for system administrators to view and adjust these policies.
[0060] 3 is a flow diagram of an example process 300 for analyzing traffic in a voice query processing system and identifying illegal voice queries based on the amount of traffic experienced by the system over time. Process 300 can be performed by a voice query processing server system, such as voice query processing server system 108 or 250. The voice query processing server system can have a traffic analyzer, such as traffic analyzer 268, for analyzing voice query processing requests received by the system over time and for detecting illegal voice queries indicated by such requests.
[0061] At stage 302, the voice query processing system receives a request from a client device to process a voice query detected by the client device in the client device's local environment. In some implementations, the system communicates with many client devices (e.g., tens, hundreds, thousands, or millions) over one or more networks and thus receives many voice query processing requests. Although in some implementations, the query can identify multiple voice queries, the voice query processing request typically identifies a single voice query that the system is requested to process. The voice query processing system can process the voice query by transcribing the voice query into text and performing an action dictated by the content of the query. Additionally, the system can send a response to the voice query to the client device, which can be, for example, a confirmation that the action was performed successfully, an indication that the requested action was suppressed, or an answer to the question. In some implementations, the audio data (e.g., compressed waveform or audio features) for the voice query is explicitly embedded in the voice query processing request. In some implementations, the audio data for the voice query can be sent to the server system in one or more messages separate from the request itself, but the request references a message that provides the audio data. In some implementations, the voice query processing request can include a pointer or other address that indicates a network storage location where a copy of the audio data for the voice query can be accessed by the server system when issued.
[0062] In stage 304, the system determines the amount of client requests (e.g., traffic) received over time. This stage can be performed, for example, by the traffic volume analyzer 278. The amount of received requests can be determined for a defined window of time. In some implementations, the system determines the amount of client requests received in the most recent period (e.g., the number of requests received in the last 30 seconds, 1 minute, 2 minutes, 5 minutes, 15 minutes, 30 minutes, 1 hour, 4 hours, 12 hours, 24 hours, or 1 week). The time interval can be predefined and can be a static or dynamic parameter that can be set automatically or based on user input. The amount of received requests represents a value based on the total number of requests received by the system in a specified time interval. In a first example, the amount indicates the absolute number of requests received by the system in a specified time interval. In a second example, the amount indicates the relative number of requests received by the system in a specified time interval. In a third example, the amount indicates the rate of change of the number of requests received by the system in a specified time interval. In a fourth example, the amount indicates an increase in the number of requests received by the system during a specified time interval. In the fourth example, the amount is a value based on a combination of factors such as two or more of the absolute number of requests received by the system during the specified time interval, the relative number, the percentage change in the number, and the increase in the number.
[0063] In some implementations, the system determines the amount of requests received by the system overall over time (e.g., counting substantially all requests received by the system in a specified time interval without filtering the requests). In other implementations, the system determines the amount of requests only for requests that have characteristics that meet certain criteria. For example, the system may determine the amount of requests received from client devices having a limited set of Internet Protocol (IP) addresses, from client devices or users located in a particular geographic area, or from a particular model of client device.
[0064] At stage 306, the system determines whether the amount of requests received by the system over time, as determined at stage 304, meets one or more criteria for triggering a deep-dive traffic analysis. Stage 306 can be performed, for example, by the traffic volume analyzer 278. During deep-dive traffic analysis, the system analyzes voice query processing requests received over a period of time in search of any illegal voice queries to be blacklisted. In some implementations, determining whether the amount of requests meets the criteria for triggering a deep-dive traffic analysis includes comparing the amount of requests received in a particular time interval to a threshold value. For example, if the amount of requests indicates an absolute number of requests received by the system in a specified time interval, the system can compare the absolute number of requests received to a threshold number of requests. If a traffic spike is indicated due to the actual number of requests received exceeding the threshold, the system can proceed to deep-dive traffic analysis at stage 308. If the volume of requests indicates a rate of change in the number of requests received by the system over time, the system can compare the observed rate of change to a threshold rate to determine whether to perform a deeper traffic analysis. If the criteria for triggering a deeper analysis are not met, in some implementations, process 300 can end or return to stage 302.
[0065] At stage 308, the system performs a deep analysis of the received request to determine whether the request includes any illegal voice queries that are not currently blacklisted. This stage 308 can be performed by the fingerprinter 270, the mismatch detector 274, and the traffic volume analyzer 278 in some implementations. For example, if a malicious entity launches a distributed campaign (e.g., a distributed denial of service (DDOS) attack) against the voice query processing system 250, the system may be inundated with requests to process many instances of the same or similar voice queries in a short time span. For example, a video broadcast on a television or computer network may be played, where the video is designed to activate many voice-based clients within audible range of the played video to generate voice query processing requests that include the voice queries uttered in the video. In some implementations, one objective of the system at stage 308 is to identify common voice queries that occur in a significant number of requests received from client devices over a period of time. Because utterances for voice queries from legitimate users are typically clearly distinguishable based on, for example, the unique voice patterns and speech characteristics of individual speakers, the system can classify common voice queries that occur among many voice query processing requests from disparate client devices over time as illegitimate. For example, the system can mark a voice query as illegitimate if the amount (e.g., volume) of the voice query dictated by the set of requests received at the server system is at least a threshold amount. In some implementations, the amount of common voice queries can be determined based on counting the number of voice queries whose fingerprints match each other, the number of voice queries whose text transcriptions match each other, or a combination thereof.The amount can be an absolute count of the number of voice queries in a group of voice queries that match the fingerprint and / or transcription, a relative count, a percentage change in the count over time, an increase in the count over time, or a combination thereof. In some implementations, the analysis in stage 308 is limited to voice query processing requests received over a limited time interval. The time interval may be the same as or different from the time interval utilized in stage 304. In other implementations, the analysis in stage 308 is not limited to voice query processing requests received over a particular time interval. For example, a video of an online video streaming service may be played multiple times by different users, even if not within a short time span. The system can detect common occurrences of voice queries in the video over time and determine that the voice queries are not the actual user's voice, but rather a characteristic of the reproducible medium. Thus, the voice queries can be considered illegitimate and blacklisted.
[0066] At stage 310, the system determines whether the set of requests requesting processing of the common voice query meets one or more suppression criteria. The suppression criteria may include an amount of requests associated with the common voice query, characteristics of the common voice query (e.g., whether the query includes a blacklisted item), and / or additional criteria. For example, the system may classify a voice query that is common among the set of requests as illegitimate if it determines that the size of the set (e.g., the amount or number of requests in the set) meets a threshold size, thereby indicating, for example, that the common voice query occurs with sufficient frequency in the received traffic.
[0067] In some implementations, in addition to or instead of the size of the set (e.g., the amount or count of the number of requests in the set that matched the fingerprint for the common voice query), signals can be utilized in determining whether the set of requests meets the suppression criteria. These signals can include information about user feedback to the response to the voice query or to the action taken as requested in the voice query. The system can obtain data indicating whether users accepted, rejected, or modified the response to the voice query. Depending on the distribution of users who accepted, rejected, or modified the response, or the results of the action taken as requested in each instance of the common voice query, the system can bias the system's determination of whether the voice query should be blacklisted or whether the set of requests meets the specified suppression criteria. For example, if the system receives many requests that each include the voice query "How is the traffic between my house and the park today?", the system can prompt the user to confirm that the user would like to obtain a response to this question. When more users confirm that the system received their voice query accurately and that they desire to obtain a response to their question, the system may be influenced to classify the voice query as less likely to be illegitimate (and less likely to meet the suppression criteria). In contrast, when more users cancel or modify their queries in response to being prompted, the system may be influenced to classify the voice query as more likely to be illegitimate (and more likely to meet the suppression criteria).
[0068] At stage 312, the system selects a path in the process 300 based on whether the set of requests for a common voice query meets a suppression criterion. If the suppression criterion is met, the process 300 may proceed to stage 314. If the suppression criterion is not met, the process may return to, for example, stage 302. In some implementations, the suppression criterion is the null set. That is, any set of requests that identify a common voice query can be classified as illegitimate, regardless of whether the set meets additional criteria.
[0069] At stage 314, a fingerprinter, such as fingerprinter 270, generates a fingerprint for forming a common voice query occurring in the set of requests. The fingerprinter can generate the fingerprint from audio data for the voice query, a text transcription of the voice query, or both. In some implementations, the fingerprint is derived from a representative instance of the common voice query selected from among the set of voice queries identified by the set of requests. The representative instance of the common voice query can be selected in any suitable manner, for example, by selecting the instance of the common voice query with the best audio quality or by randomly selecting the representative instance. In some implementations, the fingerprint is derived from multiple representative instances of the common voice query or from all of the common voice queries identified by the set of requests. For example, audio data from multiple instances of the common voice query can be merged before generating the fingerprint. Alternatively, intermediate fingerprints can be generated for each instance, and the intermediate fingerprints are then merged to form a final fingerprint for the common voice query.
[0070] At stage 316, the system's traffic analyzer registers the electronic fingerprints of the common voice queries with the Gatekeeper. In some implementations, registering the fingerprints includes adding the fingerprints to a database of voice queries, such as database 262, against which the Gatekeeper checks new voice queries to determine whether the requested action indicated by the new voice query should be throttled. In some implementations, voice queries can be blacklisted only for a subset of client devices that interact with the system, rather than universally. For example, if the system identifies that illicit voice queries are emanating from devices in a particular geographic region, the system can blacklist the voice queries only for client devices or users located in that region. In some implementations, the system can also place temporary restrictions on blacklisted voice queries. For example, voice queries can be blacklisted permanently (without expiring) or temporarily. After a voice query is removed from the blacklist, new instances of the voice query are not throttled. Temporary restrictions, geographic restrictions, and other rules governing how a voice query is blacklisted can be registered in the Gatekeeper's database along with the fingerprint for the voice query. In some implementations where client devices perform voice query inspection locally, the server system can prompt the client devices to update their local blacklist databases to keep them up to date. For example, fingerprints for voice queries that a traffic analyzer at the server system recently classified as illegal can be sent to multiple client devices. In some implementations, the system can push fingerprints for blacklisted voice queries to all client devices without restriction.In other implementations, the system may send fingerprints for blacklisted voice queries only to client devices covered by the blacklist, such as devices within a particular geographic region.
[0071] 4 is a flow diagram of an example process 400 for analyzing traffic in a voice query processing system and identifying illegitimate voice queries based on the frequency with which common voice queries occur in the traffic over time. Process 400 can be performed by a voice query processing system, such as system 108 or 250. In some implementations, process 400 is performed at least in part by a traffic analyzer at a server system, such as traffic analyzer 268.
[0072] At stage 402, the voice query processing system receives a request from a client device to process a voice query detected by the client device in the client device's local environment. In some implementations, the system communicates with many client devices (e.g., tens, hundreds, thousands, or millions) over one or more networks and thus receives many voice query processing requests. Although in some implementations, the query can identify multiple voice queries, the voice query processing request typically identifies a single voice query that the system is requested to process. The voice query processing system can process the voice query by transcribing the voice query into text and performing an action dictated by the content of the query. Additionally, the system can send a response to the voice query to the client device, which can be, for example, a confirmation that the action was performed successfully, an indication that the requested action was suppressed, or an answer to the question. In some implementations, the audio data (e.g., compressed waveform or audio features) for the voice query is explicitly embedded in the voice query processing request. In some implementations, the audio data for the voice query can be sent to the server system in one or more messages separate from the request itself, but the request references a message that provides the audio data. In some implementations, the voice query processing request can include a pointer or other address that indicates a network storage location where a copy of the audio data for the voice query can be accessed by the server system when issued.
[0073] In stages 406-410, the system performs various operations on the voice queries corresponding to the set of voice query processing requests. In some implementations, the operations are performed on the voice queries corresponding to substantially all voice queries received by the system over a period of time. In other implementations, the system may sample the received requests and perform stages 406-410 on the voice queries corresponding to only a selected (sampled) subset of the voice queries received by the system over a period of time. In these implementations, the system samples the received voice query processing requests in stage 404. The requests can be sampled according to one or more criteria, such as the time the request was sent by the client device or received by the server system, the location or geographic region of the client device or user submitting the request, or a combination of these or other factors.
[0074] At stage 406, the fingerprinter generates fingerprints for the voice queries identified in the requests received from the client device. In some implementations, fingerprints are generated only for voice queries that correspond to requests selected in the sample set from stage 404. At stage 408, the fingerprints for the voice queries are added to a database, such as fingerprint database 272. The fingerprint database may include a cache of fingerprints for voice queries received by the system over a recent period (e.g., the last 10 seconds, 30 seconds, 1 minute, 2 minutes, 5 minutes, 15 minutes, 30 minutes, 1 hour, 4 hours, 1 day, or 1 week).
[0075] At stage 410, a mismatch detector of the voice query processing system, such as the mismatch detector 274, monitors the amount of mismatch between fingerprints for each unique voice query represented in the fingerprint database. A mismatch occurs whenever a fingerprint for a new voice query that matches a previously stored fingerprint in the database is added to the database. In general, a mismatch indicates that a new instance of a previously detected voice query has been identified. In some implementations, each group of matching fingerprints in the database represents the same voice query or a similar voice query that is different from the voice query represented by other groups of matching fingerprints in the database. That is, each group of matching fingerprints represents a unique voice query that was common among a set of processing requests. The mismatch detector can constantly monitor the amount of mismatch in the fingerprint database for each unique voice query. In some implementations, the amount of mismatch for a given voice query is determined based on a count of the number of matching fingerprints in a group detected by the system over time. The amount of mismatch can indicate, for example, an absolute number of mismatches, a relative number of mismatches, a percentage change in mismatch over time, an increase in mismatch over time, or a combination of two or more of these.
[0076] At stage 412, the system determines whether to classify one or more of the unique voice queries represented in the fingerprint database as illegitimate voice queries. A voice query may be deemed illegitimate based on the amount of mismatches detected for the voice query over a recent period of time. For example, the system may determine to blacklist a voice query if the amount of mismatches detected for the voice query over a recent period of time meets a threshold amount of mismatches. The mismatch detector may keep track of groups of matching fingerprints in the fingerprint database and a count of the number of matching fingerprints in each group. Since the groups are sorted based on matching fingerprints, each group may represent a different voice query (e.g., the same voice query or a voice query that is sufficiently similar). The system may select to classify a voice query corresponding to one or more of the groups based on the count of the number of matching fingerprints in each group. For example, a voice query for a group with a large count in the top n (e.g., n=1, 2, 3, 4, 5, or more) may be selected and classified as illegitimate, and / or a voice query for a group with a count that meets a threshold count may be classified as illegitimate.
[0077] In some implementations, in addition to or instead of the amount of mismatch (e.g., a value based on the count of matching fingerprints per group), signals can be utilized in classifying a voice query as illegitimate and determining whether the voice query should be blacklisted. These signals can include information about user feedback to the response to the voice query or to the action taken as requested in the voice query. The system can obtain data indicating whether users accepted, rejected, or modified the response to the voice query. Depending on the distribution of users who accepted, rejected, or modified the response, or the results of the action taken as requested in each instance of a common voice query, the system can bias the system's decision as to whether the voice query should be blacklisted or whether a set of requests meets a specified suppression criterion. For example, if the system receives many requests each containing the voice query "How is the traffic between my house and the park today?", the system can prompt the user to confirm that the user would like to obtain a response to this question. When more users confirm that the system received their voice query accurately and that they desire to obtain a response to their question, the system may be influenced to classify the voice query as less likely to be illegitimate (and less likely to meet the suppression criteria). In contrast, when more users cancel or modify their queries in response to being prompted, the system may be influenced to classify the voice query as more likely to be illegitimate (and more likely to meet the suppression criteria).
[0078] The system then blacklists the illegal voice queries by registering a fingerprint for the voice query with a gatekeeper at the server system and / or client device at stage 414. In some implementations, the system similarly registers the fingerprint with a gatekeeper (e.g., a voice query suppression service) described in stage 316 of FIG.
[0079] FIG. 5 is a swim lane diagram illustrating an example of a process 500 for detecting illegal voice queries and suppressing voice query behavior at a server system. In some implementations, the process 500 is performed between a client device, such as client 106 or 200, and a voice query processing server system, such as system 108 or 250. At stage 502, the client device detects a hot word in the client device's local environment. In response to detecting the hot word, the device activates and captures a voice query including a sequence of words following the hot word at stage 504. At stage 506, the client device pre-processes audio data for the received voice query. Optionally, the pre-processing can include generating a feature representation of the audio signal for the received voice query. At stage 508, the client device generates and sends a voice query processing request for the voice query to the server system. The server system receives the request at stage 510. Upon receiving the request, the server system generates a digital fingerprint of the voice query. The digital fingerprint is compared to other fingerprints pre-stored in a database of blacklisted voice queries at stage 514. If the fingerprint for the received voice query matches any of the pre-stored fingerprints corresponding to the blacklisted voice queries, the system determines that the received voice query has been blacklisted and suppresses execution of the action indicated by the received voice query (stage 518). In some implementations, the server system may send an indication to the client device that the action indicated by the received voice query has been suppressed (stage 520). The client device receives the indication at stage 522. The client may log the indication of the suppressed voice query and may generate a user notification of the suppressed action.
[0080] FIG. 6 is a swim-lane diagram illustrating an example of a process 600 for detecting illegal voice queries and suppressing voice query behavior at a client device. In some implementations, the process 600 is performed between a client device, such as client 106 or 200, and a voice query processing server system, such as system 108 or 250. In contrast to the process 500 of FIG. 5, the process 600 of FIG. 6 inspects voice queries locally at the client device, rather than at the server system. The client device can still obtain model fingerprints for blacklisted voice queries from the server system. Fingerprints for blacklisted voice queries can be generated by the server system in some implementations using the techniques described for FIG. 3 and FIG. 4.
[0081] At stage 602, the server system generates a fingerprint for the blacklisted voice query. At stage 604, the server system sends a fingerprint for the blacklisted voice query to a client device having a local gatekeeper for sending and registering the fingerprint to inspect the voice query. At stage 606, the client device receives a model fingerprint for the blacklisted voice query from the server system. At stage 608, the client device stores the fingerprint in a local blacklisted voice query database. At stage 610, the client device detects an utterance of a hot word in the device's local environment. In response to detecting the hot word, the client device activates and captures a voice query that includes one or more words following the hot word (stage 612). At stage 614, the device generates a digital fingerprint for the received voice query. The digital fingerprint is compared to other fingerprints pre-stored in the blacklisted voice query database at stage 616. If the fingerprint for the received voice query matches a pre-stored fingerprint corresponding to a blacklisted voice query (stage 618), the device determines that the received voice query is blacklisted and inhibits performance of the action indicated by the received voice query (stage 620).
[0082] 7 illustrates an example of a computing device 700 and a mobile computing device that can be used to perform the techniques described herein. The computing device 700 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The mobile computing device is intended to represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, and other similar computing devices. The components shown here, their connections and relationships, and their functions are intended to be merely exemplary and are not intended to limit the implementation of the invention described and / or claimed in this document.
[0083] The computing device 700 includes a processor 702, a memory 704, a storage device 706, a high-speed interface 708 connecting to the memory 704 and multiple high-speed expansion ports 710, and a low-speed interface 712 connecting to a low-speed expansion port 714 and the storage device 706. Each of the processor 702, memory 704, storage device 706, high-speed interface 708, high-speed expansion port 710, and low-speed interface 712 may be interconnected using various buses and mounted on a common motherboard or in other manners as desired. The processor 702 may process instructions for execution within the computing device 700, including instructions stored in the memory 704 or storage device 706 for displaying graphical information for a GUI on an external input / output device, such as a display 716 coupled to the high-speed interface 708. In other implementations, multiple processors and / or multiple buses may be used along with multiple memories and types of memories as desired. Also, multiple computing devices may be connected, each performing some of the required operations (eg, as a bank of servers, a group of blade servers, or a multi-processor system).
[0084] The memory 704 stores information in the computing device 700. In some implementations, the memory 704 is one or more volatile memory units. In some implementations, the memory 704 is one or more non-volatile memory units. The memory 704 may also be another form of computer-readable medium, such as a magnetic disk or optical disk.
[0085] The storage device 706 can provide mass storage for the computing device 700. In some implementations, the storage device 706 can be or include a computer-readable medium, such as a floppy disk device, a hard disk device, an optical disk device, or a tape device, a flash memory or other similar solid-state memory device, or an array of devices including devices in a storage area network or other configuration. A computer program product can also include instructions that, when executed, perform one or more methods, such as those described above. The computer program product can also be tangibly embodied in a computer-readable or machine-readable medium, such as memory 704, the storage device 706, or memory on the processor 702.
[0086] The high-speed interface 708 manages bandwidth intensive operations for the computing device 700, while the low-speed interface 712 manages non-bandwidth intensive operations. This distribution of functionality is merely exemplary. In some implementations, the high-speed interface 708 is coupled to the memory 704 (e.g., via a graphics processor or accelerator), to a display 716, and to a high-speed expansion port 710 that can accept various expansion cards (not shown). In an implementation, the low-speed interface 712 is coupled to the storage device 706 and to a low-speed expansion port 714. The low-speed expansion port 714 can include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet) and can be coupled to one or more input / output devices, such as a keyboard, a pointing device, a scanner, or a networking device, such as a switch or router, for example, via a network adapter.
[0087] Computing device 700 can be implemented in a number of different forms, as shown in the figure. For example, computing device 700 can be implemented as a standard server 720 or many times in a group of such servers. Additionally, computing device 700 can be implemented in a personal computer, such as laptop computer 722. Computing device 700 can also be implemented as part of a rack server system 724. On the other hand, components from computing device 700 can be combined with other components (not shown) in a mobile device, such as mobile computing device 750. Each such device can include one or more of computing device 700 and mobile computing device 750, and the entire system can be made up of multiple computing devices that communicate with each other.
[0088] The mobile computing device 750 includes, among other components, a processor 752, a memory 764, an input / output device such as a display 754, a communication interface 766, and a transceiver 768. The mobile computing device 750 may also be provided with a storage device such as a microdrive or other device to provide additional storage. Each of the processor 752, memory 764, display 754, communication interface 766, and transceiver 768 are interconnected using various buses, and some of the components may be mounted on a common motherboard or in other manners as desired.
[0089] The processor 752 can execute instructions within the mobile computing device 750, including instructions stored in the memory 764. The processor 752 can be implemented as a chipset of chips including individual and multiple analog and digital processors. The processor 752 can coordinate with other components of the mobile computing device 750, such as controlling a user interface, applications run by the mobile computing device 750, and wireless communications by the mobile computing device 750.
[0090] The processor 752 can communicate with a user through a control interface 758 and a display interface 756 coupled to a display 754. The display 754 can be, for example, a TFT (thin film transistor liquid crystal display) display, or an OLED (organic light emitting diode) display, or other suitable display technology. The display interface 756 can include suitable circuitry for driving the display 754 to present graphical and other information to a user. The control interface 758 can receive commands from a user and translate the commands for input to the processor 752. Additionally, an external interface 762 can communicate with the processor 752 to enable near area communication of the mobile computing device 750 with other devices. The external interface 762 can, for example, provide wired communication in some implementations or wireless communication in other implementations, and multiple interfaces can also be used.
[0091] The memory 764 stores information within the mobile computing device 750. The memory 764 can be implemented as one or more of one or more computer readable media, one or more volatile memory units, or one or more non-volatile memory units. An expansion memory 774 can also be provided and connected to the mobile computing device 750 through an expansion interface 772, which can include, for example, a SIMM (single in-line memory module) card interface. The expansion memory 774 can provide additional storage space to the mobile computing device 750 and can also store applications or other information for the mobile computing device 750. In particular, the expansion memory 774 can include instructions for performing or supplementing the above-mentioned processes and can also include secure information. Thus, for example, the expansion memory 774 can be provided as a security module for the mobile computing device 750 and can also be programmed with instructions that enable secure use of the mobile computing device 750. Furthermore, secure applications can be provided via a SIMM card along with additional information, such as installation identification information on the SIMM card in an unhackable manner.
[0092] The memory may include, for example, flash memory and / or NVRAM memory (non-volatile random access memory), as discussed below. The computer program product includes instructions that, when executed, perform one or more methods, such as those described above. The computer program product may be a computer-readable or machine-readable medium, such as memory 764, expansion memory 774, or memory on the processor 752. In some implementations, the computer program product may be received in a propagated signal, for example, via the transceiver 768 or the external interface 762.
[0093] The mobile computing device 750 can communicate wirelessly via a communication interface 766, which may include digital signal processing circuitry as necessary. The communication interface 766 can communicate under various modes or protocols, such as GSM voice telephony (Global System for Mobile Communications), SMS (Short Message Service), EMS (Enhanced Messaging Service), or MMS messaging (Multimedia Messaging Service), CDMA (Code Division Multiple Access), TDMA (Time Division Multiple Access), PDC (Personal Digital Cellular), WCDMA (Wideband Code Division Multiple Access), CDMA2000, or GPRS (General Packet Radio System), among others. Such communications can occur through a transceiver 768 using radio frequencies, for example. Additionally, short-range communications can occur, such as using Bluetooth, WiFi, or other such transceivers (not shown). Additionally, a GPS (Global Positioning System) receiver module 770 can provide further navigation-related and location-related wireless data to the mobile computing device 750 that can be used as needed by applications running on the mobile computing device 750.
[0094] The mobile computing device 750 can also communicate audibly using an audio codec 760, which can receive spoken information from a user and convert this information into usable digital information. The audio codec 760 can also generate audible sounds for the user, such as through a speaker in a handset of the mobile computing device 750. Such sounds can include sounds from a voice call, can include recorded sounds (e.g., voice messages, music files, etc.), and can also include sounds generated by applications running on the mobile computing device 750.
[0095] The mobile computing device 750 may be implemented in a number of different forms, as shown in the figure. For example, the mobile computing device 750 may be implemented as a cellular telephone 780. The mobile computing device 750 may also be implemented as part of a smartphone 782, a personal digital assistant, or other similar mobile device.
[0096] Various implementations of the systems and techniques described herein can be realized in digital electronic circuitry, integrated circuitry, specially designed ASICs (application-specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementations in one or more computer programs executable and / or interpretable on a programmable system including at least one programmable processor, which can be special purpose or general purpose, coupled to receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0097] These computer programs (also known as programs, software, software applications, or code) include machine instructions for a programmable processor and can be implemented in high-level procedural and / or object-oriented programming languages and / or in assembly / machine languages. As used herein, the terms machine-readable medium and computer-readable medium refer to any computer program product, apparatus, and / or device (e.g., magnetic disk, optical disk, memory, programmable logic device (PLD)) used to provide machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term machine-readable signal refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0098] To interact with a user, the systems and techniques described herein can be executed on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user, as well as a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to interact with the user, for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback), and input from the user can be received in any form including acoustic, speech, or tactile input.
[0099] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., such as a data server), includes middleware components (e.g., an application server), includes front-end components (e.g., a client computer having a graphical user interface or web browser through which a user can interact with an implementation of the systems and techniques described herein), or includes any combination of such back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0100] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
[0101] In situations where the systems, methods, devices, and other techniques herein collect or can use personal information (e.g., contextual data) about a user, the user may be given the opportunity to control whether a program or feature collects user information (e.g., information about the user's social network, social actions or activities, occupation, the user's preferences, or the user's current location) or to control whether or how the user receives content from a content server that may be more relevant to the user. Additionally, certain data may be treated in one or more ways before being stored or used so that personally identifying information is removed. For example, the user's identity may be treated such that personally identifying information cannot be determined for the user, and the user's geographic location may be made vague (such as to the city, zip code, or state level) where location information is obtained so that the user's specific location cannot be determined. Thus, the user may control how information about the user is collected and used by the content server.
[0102] Although various implementations have been described in detail above, other variations are possible. Additionally, the logic flow depicted in the figures does not require the particular order shown, or sequential order, to achieve desirable results. Additionally, other steps can be performed and steps can be removed from the described flows, and other components can be added or removed from the described systems. Accordingly, other implementations are within the scope of the following claims. [Explanation of symbols]
[0103] 100 Processing 102 Voice Query Client Device, Client Device, Device 102a Client Device 102b Client Device 102c Client Device 102d Client Device 102e Client Devices 102f Client Device 102g Client Devices 102h Client device 102i Client Device 104 users 106 Audio Device, Client Device 106a Client Device, Device 106b Client Device, Device 108 Voice Query Processing Server, Voice Query Processing System, Voice Query Processing Subsystem, Voice Query Processing Server System, System 110 Gatekeeper 112 Blacklisted Queries,Database,Database of Blacklisted Voice Queries 114 Traffic Analyzer 116 Certified Query Processing Subsystem 118 Voice Query Processing Request, Request 118a Speech query 1, first speech query, speech query, speech query processing request, request 118b Spoken query 2, second spoken query, spoken query, spoken query processing request, request 122a Request: Speech query 1, first request, request, first speech query processing request 122b Request: Voice query 2, second request, request 126a Response 126b Responses, Instructions 152a Acoustic environment, environment 152b Environment 152c environment 152d environment 152e Environment 152f Environment 200 client devices, devices 202 Microphone 204 Hotword Processor 206 Audio Buffer 208 Audio Preprocessor, Preprocessor 210 Network Interface 212 Display, electronic display 214 Speaker 216 Gatekeeper, Client Side Gatekeeper 218 Fingerprinter 220 Blacklisted Voice Queries Database,Database 222 Suppressor 224 Suppression Log 250 Voice query processing server system, voice query processing system, system 251 Speech Recognizer 252 Natural Language Processor 254 Service Hub 256 network interfaces 258 Gatekeeper, Server Gatekeeper 260 Fingerprinter 262 Blacklisted Voice Queries Database,Database 264 Suppressor 266 Suppression Log 268 Traffic Analyzer, Analyzer 270 Fingerprinter 272 Fingerprint Database 274 Discrepancy Detector 276 Policy Manager 278 Traffic volume analyzer, volume analyzer 280 Traffic Filters 300 Processing 400 Processing 500 Processing 600 Processing 700 computing devices 702 Processor 704 Memory 706 Storage Devices 708 High Speed Interface 710 High Speed Expansion Port 712 Low Speed Interface 714 Low Speed Expansion Port 716 Display 720 Standard Server 722 Laptop Computer 724 Rack Server System 750 Mobile Computing Devices 752 processor 754 Display 756 Display Interface 758 Control Interface 760 Audio Codec 764 Memory 766 Communication Interface 768 Transmitter / Receiver 762 External Interface 770 GPS Receiver Module 772 Expansion Interface 774 Expanded Memory 780 Cellular Phone 782 Smartphones
Claims
1. receiving, by one or more computer systems, requests from a plurality of client devices to process voice queries detected in a local environment of the client devices; identifying, by the system, that a value based on a number of requests to process a voice query received by the system within a specified time interval satisfies one or more criteria; in response to identifying that the value based on the number of requests to process a voice query received by the system during the specified time interval satisfies the one or more criteria, analyzing at least some of the requests received during the specified time interval to determine a set of requests, each of the requests identifying a common voice query; suppressing execution of the action indicated by the common voice query in one or more requests subsequently received by the system; 4. A computer-implemented method comprising:
2. determining by the system whether the set of requests, each of which identifies the common voice query, meets one or more second criteria. Further comprising: selecting, based on whether the set of requests each identifying the common voice query is determined to satisfy the one or more second criteria, for the system to generate a fingerprint of the common voice query.
2. The computer-implemented method of claim 1.
3. 3. The computer-implemented method of claim 2, wherein determining whether the set of requests, each of which identifies the common voice query, satisfies the one or more second criteria comprises determining whether a value based on a number of requests in the set of requests, each of which identifies the common voice query, satisfies a threshold value.
4. 4. The computer-implemented method of claim 1, wherein identifying that the value based on the number of requests to process voice queries received by the system within the specified time interval satisfies the one or more criteria comprises determining that an amount of requests received by the system within the specified time interval satisfies a threshold amount.
5. 5. The computer-implemented method of claim 1, wherein the amount of requests received by the system during the specified time interval indicates at least one of an absolute number of requests received during the specified time interval, a relative number of requests received during the specified time interval, a percentage of requests received during the specified time interval, or an increase in requests received during the specified time interval.
6. 6. The computer-implemented method of claim 1, wherein analyzing at least some of the requests received within the specified time interval to determine the set of requests that each identify the common voice query comprises generating fingerprints of voice queries identified by requests received within the specified time interval, and determining matches among the fingerprints.
7. 7. The computer-implemented method of claim 1, wherein the common voice query includes a hot word that will activate a client device and one or more words following the hot word.
8. receiving, by one or more computer systems, requests from a plurality of client devices to process voice queries detected in a local environment of the client devices; generating, for each request in at least the subset of requests, a fingerprint of a respective voice query identified by the request; comparing, by the system, the fingerprints of the respective voice queries of requests in at least the subset of requests to determine a group of matching fingerprints; determining, by said system, for each group in at least a subset of said groups of matching fingerprints, a respective count indicative of the number of matching fingerprints in said group; selecting, by the system, one or more of the groups of matching fingerprints based on the count; for each selected group of matching fingerprints, enrolling a respective fingerprint based on one or more of the matching fingerprints in the group with a voice query suppression service; 4. A computer-implemented method comprising:
9. 9. The computer-implemented method of claim 8, wherein for each request in the at least the subset of requests, generating the fingerprint of the respective voice query identified by the request comprises generating a model that unambiguously characterizes at least audio data for the respective voice query.
10. 10. The computer-implemented method of claim 9, wherein the model further characterizes a text transcription for each of the voice queries.
11. 11. The computer-implemented method of claim 8, wherein for each selected group of matching fingerprints, registering the respective fingerprint for the group with the voice query suppression service comprises adding the respective fingerprint to a database of blacklisted voice queries.
12. receiving, by the system, a first request, when sent from a first client device of the plurality of client devices, to process a first voice query detected in a local environment of the first client device; generating, by the system, a first fingerprint of the first voice query; comparing, by the system, the first fingerprint with the fingerprints of a plurality of blacklisted voice queries; determining by the system whether the first fingerprint matches any of the fingerprints of the plurality of blacklisted voice queries; determining to inhibit an action indicated by the first voice query in response to determining that the first fingerprint of the first voice query matches at least one of the fingerprints of the plurality of blacklisted voice queries; 12. The computer-implemented method of claim 8, further comprising:
13. 13. A computer-implemented method according to claim 8, comprising selecting one or more of the groups of matching fingerprints based on the one or more of the groups having a count indicating a number of matching fingerprints that is greater than a number of other groups of matching fingerprints.
14. 14. A computer-implemented method according to claim 8, comprising selecting the one or more of the groups of matching fingerprints based on the one or more of the groups having a count that meets a threshold count.
15. 15. The computer-implemented method of claim 8, further comprising sampling a particular one of the received requests to generate the subset of requests, wherein the system generates a fingerprint for each voice query identified by a request in the subset of requests but not a fingerprint for a voice query identified by a request that is not in the subset of requests.
16. 16. The computer-implemented method of claim 15, wherein sampling a particular one of the received requests to generate the subset of requests comprises at least one of: randomly selecting requests for inclusion in the subset of requests, or selecting requests for inclusion in the subset of requests based on one or more characteristics of a client device submitting the request.
17. for a first one of the selected groups of matching fingerprints, generating a representative fingerprint for the first group based on a plurality of fingerprints from the first group of matching fingerprints; enrolling the representative fingerprint in the voice query suppression service; 17. The computer-implemented method of claim 8, further comprising:
18. 1. A system comprising: one or more processors; When executed by the one or more processors, receiving requests from a plurality of client devices to process voice queries detected in a local environment of the client devices; identifying a value based on a number of requests to process a voice query received by the system within a specified time interval that satisfies one or more criteria; In response to identifying that the value based on the number of requests to process a voice query received by the system during the specified time interval satisfies the one or more criteria, analyzing at least some of the requests received during the specified time interval to determine a set of requests, each of the requests identifying a common voice query; and and suppressing execution of the action indicated by the common voice query in one or more requests subsequently received by the system. One or more computer-readable media having instructions stored thereon that cause the execution of operations including: A system comprising:
19. The operation, determining whether the set of requests, each of which identifies the common voice query, satisfies one or more second criteria; Further comprising: selecting, based on whether the set of requests each identifying the common voice query is determined to satisfy the one or more second criteria, for the system to generate a fingerprint of the common voice query.
20. The system of claim 18.
20. 20. The system of claim 18 or 19, wherein determining whether the set of requests, each of which identifies the common voice query, satisfies the one or more second criteria comprises determining whether a value based on a number of requests in the set of requests, each of which identifies the common voice query, satisfies a threshold value.
Citation Information
Patent Citations
Presentation of local results
JP2010517146A
Hotword recognition
JP2017076117A
Methods And Apparatus For Unsupervised Wakeup With Time-Correlated Acoustic Events
US20160266910A1
Hotword recognition
US20170110144A1
Directions-based ranking of places returned by local search queries
US8538973B1
