Patent Description:
<CIT> describes a device including a speech recognition function which recognizes speech from a user, wherein the device includes: a loudspeaker which outputs speech to a space; a microphone which collects speech in the space; a first speech recognition unit which recognizes the speech collected by the microphone; a command control unit which issues a command for controlling the device, based on the speech recognized by the first speech recognition unit; and a control unit which prohibits the command issuance unit from issuing the command, based on the speech to be output from the loudspeaker.

<CIT> describes an apparatus which comprises: first logic to generate a first audio data and to embed the first audio data with a watermark to generate an embedded data; a speaker to output the embedded data as a first audible audio; a microphone to receive a second audible audio; and second logic to check the second audible audio for the watermark, and if the second audible audio has the watermark embedded in the first audio data, generate a first message, else generate a second message.

<CIT> describes devices, methods, and systems for detecting wake words and audio commands that should be disregarded are disclosed. In some instances, a local device may receive a wake word or audible command transmitted or uttered in a television or radio advertisement, program, broadcast, etc. In these instances, the local device should disregard such wake words and audible commands, as they are not from a user of the local device. To detect such wake words and commands, audio fingerprinting and speech recognition techniques may be used to determine whether the wake word and/or command substantially matches the audio of a known television or radio advertisement, program, broadcast, etc. If the wake word and/or command substantially matches, the local device may then disregard the command.

In some implementations, a playback device may analyze an audio stream for hotwords, keywords, or key phrases. Upon detection of a hotword, a keyword, or a key phrase, the playback device adds an audio watermark to the audio stream. A listening device, which captures presentation of an audio stream by the playback device, uses audio watermarks to determine whether to perform an action upon detection of a hotword, a keyword, or a key phrase. When the listening device determines that a detected hotword, keyword, or key phrase is associated with an audio watermark in an audio stream, the listening device determines to not perform any action responsive to the detected hotword, keyword, or key phrase, e.g., because the detected hotword, keyword, or key phrase was a pre-recorded utterance and not spoken by a person in a physical area near the listening device. When the listening device determines that a detected hotword, keyword, or key phrase is not associated with an audio watermark in an audio stream, the listening device performs a corresponding action, e.g., because the detected hotword, keyword, or key phrase was likely uttered by a person in the physical area near the listening device.

The subject matter described in this specification can be implemented in various embodiments and may result in one or more of the following advantages. In some implementations, the systems and methods described below may add an audio watermark to an audio data stream that includes a hotword, a keyword, or a key phrase, to reduce a likelihood that a listening device will perform an action based on the hotword, the keyword, or the key phrase. For instance, the systems and methods described below may use the audio watermark to prevent a listening device from falsely triggering, e.g., waking up or performing another action, based on content included in an audio data stream when the listening device should only trigger based on utterances spoken by a person physically near the listening device, e.g., who is located in the same room as the listening device, at the time the utterance was originally spoken. False triggering of listening devices results in computing resources (e.g. bandwidth, processing power etc.) being consumed unnecessarily. As such, by reducing occurrences of false triggering, the unnecessary consumption of computing resources may also be reduced. In some implementations, the systems and methods described below may add an audio watermark to an audio data stream to reduce a likelihood that a listening device will perform an action based on utterances reproduced by playback device, regardless if they are pre-recorded, streamed live, synthetically created by playback device, or a combination of two or more of these.

A playback device may receive an audio data stream, e.g., third party content, and analyze the audio data stream for a key phrase. The playback device may analyze the audio data stream using a text detector, a hotword detector, or both. When the playback device determines, based on the analysis, that the audio data stream encodes a hotword, a keyword, or a key phrase, the playback device inserts an audio watermark into the audio data stream. The audio watermark may be an ultrasonic signal encoded in the audio data stream. The playback device then audibly presents the modified audio data stream, e.g., using a speaker. The audio watermark may indicate, to any listening devices that capture the modified audio data stream, that the encoded hotword, keyword, or key phrase is produced by another device and not a human speaking in the room, e.g., that includes the listening devices.

In some implementations, the playback device may include a watermark detector. The playback device may use the watermark detector to determine whether the audio data stream, as received, includes a watermark. When the playback device determines that the audio data stream does not already include a watermark, the playback device inserts the audio watermark into the audio data stream. When the playback device determines that the audio data stream, as received, includes a watermark, the playback device determines whether to add another watermark, e.g., an audio watermark. For instance, the playback device may determine what the watermark, included in the received audio data stream, identifies. When the included watermark represents something other than a hotword, a keyword, or a key phrase, the playback device may add the audio watermark to the audio data stream. When the included watermark represents a hotword, a keyword, or a key phrase for which the playback device is analyzing the audio data stream, the playback device may determine to not add another watermark to the received audio data stream.

<FIG> is an example environment <NUM> in which a playback device <NUM> which is a server analyzes an audio data stream <NUM> to determine whether a portion of the audio data stream <NUM> includes a hotword, a keyword, or a key phrase. In this document, the term "key phrase" is generally understood to include both "keywords" and "hotwords" in addition to key phrases. Some examples of key phrases include wake-up commands, activation commands, or commands to perform particular actions, e.g., initiating a telephone call or launching an application.

A television, as the playback device <NUM>, may receive a video stream for a movie. The television may use an automated speech recognizer <NUM> to analyze the audio data stream <NUM> for the video stream and determine whether the audio data stream <NUM> encodes a hotword. When the television detects a hotword encoded in the audio, the television encodes an audio watermark <NUM>, associated with the detected hotword, in the audio data stream <NUM>. While a smartphone, as a listening device <NUM>, is located near the television, e.g., in the same room as the television, the smartphone may analyze sounds, including the audio for the movie, to determine whether the sounds are utterances of a hotword that will cause the smartphone to perform a particular action. For instance, the listening device <NUM> may wake-up from a sleep state, e.g., to go from a low power usage state to a higher power usage state, upon detection of a hotword. When the smartphone detects an utterance of the keyword, the smartphone determines whether the utterance is associated with an audio watermark. For instance, when the smartphone detects the hotword in the audio data stream <NUM> for the movie, the smartphone will also detect the audio watermark <NUM> which the television added to the audio data stream <NUM> and, based on detection of both the hotword and the audio watermark <NUM>, determine to maintain the sleep state, perform another action associated with detection of a hotword and a corresponding audio watermark, or both. The other action may include any type of action that is different than if the audio did not include an audio watermark for the hotword, such as logging the detection or logging a universal resource locator presented on the listening device's screen or both. When the smartphone detects an utterance of the hotword that is not associated with an audio watermark, e.g., an utterances spoken by a user, the smartphone will wake-up from the sleep state, e.g., go into a higher powered mode.

The playback device <NUM> includes a content retrieval module <NUM> that accesses content for analysis. The content retrieval module <NUM> can include a wired input, a wireless radio, a radio receiver, or a memory the content retrieval module <NUM> uses to access the audio data stream <NUM>. For instance, when the content retrieval module <NUM> includes a wired input, the content retrieval module <NUM> can receive the audio data stream <NUM> from a cable television connection or another device connected to the playback device <NUM> using a wire. When the content retrieval module <NUM> includes a wireless radio, the content retrieval module <NUM> can receive the audio data stream <NUM> from a device that connects to the playback device <NUM> wirelessly, e.g., via a network. For instance, the content retrieval module <NUM> may receive the audio data stream <NUM> as an audio stream, or an audio and video stream, from another device, e.g., a live stream, a synthetically created stream, or both. When the content retrieval module <NUM> includes a radio receiver, the content retrieval module <NUM> can receive the audio data stream <NUM> as part of a radio broadcast, e.g., an amplitude modulation (AM) or a frequency modulation (FM) radio broadcast. When the content retrieval module <NUM> includes a memory, the content retrieval module <NUM> can access the audio data stream <NUM> as part of an audio file or an audio and video file stored in the memory, e.g., a prerecorded audio or video file stored in the memory. The memory may be integrated into the playback device <NUM>, e.g., a hard disk drive or a flash drive, or may be a removable storage unit, e.g., a universal serial bus flash drive or a compact disc or digital versatile disc.

The content retrieval module <NUM> provides at least part of the audio data stream <NUM> to an automated speech recognizer <NUM> (ASR). The automated speech recognizer <NUM> may be programed, e.g., when software, or designed, e.g., when hardware, or both, to detect words or phrases encoded in the audio data stream. The automated speech recognizer <NUM> may detect specific key phrases in a particular language without being able to detect an occurrence of all words in the particular language.

In some examples, the playback device <NUM> may use an automated hotword detection module that detects one or more hotwords but cannot detect every word in a particular language instead of or in addition to the automated speech recognizer <NUM>. The automated speech recognizer <NUM>, the automated hotword detection module, or both, may be preprogrammed for particular hotwords, e.g., by an administrator. The hotwords may include individual words or phrases that include multiple words.

In some examples, the automated speech recognizer <NUM> can detect occurrences of multiple different words encoded in an audio data stream in addition to the particular hotwords, keywords, key phrases, or a combination of two or more of these, for which the playback device <NUM> analyzes the audio data stream. For instance, the automated speech recognizers <NUM> may be trained to detect words in a particular language, including hotwords, keywords, or key phrases.

The automated speech recognizer <NUM> may, prior to receipt of at least part of the audio data stream <NUM>, receive input identifying the hotwords, keywords, or key phrases for which the automated speech recognizer <NUM> analyzes the audio data stream <NUM>. For instance, the playback device <NUM> may receive user input that identifies the key phrases for which the automated speech recognizer <NUM> will analyze audio data streams. In some examples, the playback device <NUM> may receive input from another device, e.g., a smartphone, that identifies the key phrases for which the automated speech recognizer <NUM> will analyze audio data streams.

The automated speech recognizer <NUM> analyzes at least part of the audio data stream <NUM> to determine whether a portion of the audio data stream <NUM> encodes a hotword, a keyword, or a key phrase for which the automated speech recognizer <NUM> is configured to detect. For example, as the content retrieval module <NUM> receives part of the audio data stream <NUM> and provides the part of the audio data stream <NUM> to the automated speech recognizer <NUM>, the automated speech recognizer <NUM> analyzes the part of the audio data stream <NUM> for encoded occurrences of the hotwords, keywords, or key phrases for which the automated speech recognizer <NUM> is configured to detect. The content retrieval module <NUM> can continue to receive additional parts of the audio data stream <NUM> while the automated speech recognizer <NUM> determines whether a portion of the audio data stream <NUM> encodes a hotword, a keyword, or a key phrase.

When the automated speech recognizer <NUM> detects an occurrence of a hotword, keyword, or key phrase in a portion of the audio data stream <NUM>, the automated speech recognizer <NUM> provides a message to a watermark encoding module <NUM>. The message may identify the portion of the audio data stream that encodes the detected hotword, keyword, or key phrase.

In response to receipt of the message, the watermark encoding module <NUM> inserts an audio watermark <NUM> into the audio data stream <NUM> to create a modified audio data stream <NUM>. When the message identifies a first portion <NUM> of the audio data stream <NUM> that encodes the hotword, the keyword, or the key phrase, the watermark encoding module <NUM> may insert the audio watermark <NUM> into a second portion <NUM> of the audio data stream <NUM> that is associated with the first portion <NUM>. The second portion <NUM> may be a sub-portion of the first portion <NUM>, e.g., as shown in <FIG>. The second portion <NUM> may overlap with the first portion <NUM>, e.g., the second portion <NUM> may include data from the audio data stream <NUM> prior to and including the beginning of the first portion <NUM>, after and including the ending of the first portion <NUM>, or both. The second portion <NUM> may be included in the audio data stream <NUM> prior to the beginning of the first portion <NUM>. The second portion <NUM> may be adjacent to the first portion <NUM> without a gap between the two portions. The second portion <NUM> might not overlap with the first portion <NUM>. In some implementations, the second portion <NUM> may be after the first portion <NUM>.

The watermark encoding module <NUM> includes multiple audio watermarks in the modified audio data stream <NUM>. Each of the multiple audio watermarks may encode the same data. In some examples, some of the multiple audio watermarks may encode different data.

In some implementations, the playback device <NUM> may encode additional data in the audio watermark <NUM>. The additional data may indicate a type of the playback device <NUM>, e.g., a television, a stereo receiver, or a computer; a timestamp, e.g., when the playback device <NUM> inserted the audio watermark into the audio data stream or when the playback device <NUM> received the audio data stream <NUM>; or a source of the audio data stream <NUM>, e.g., a television station, radio station, a movie name, or a podcast name. A listening device <NUM> may use the additional data when determining an action to perform.

An audio watermark indicates that the playback device <NUM> received the audio data stream from a content provider, e.g., a particular radio station, television station, cable provider, or another particular content provider.

An audio watermark may identify the particular hotword, keyword, or key phrase encoded in the audio data stream <NUM>. For instance, an audio watermark may include an identifier for the hotword, keyword, or key phrase. The identifier may be any appropriate type of identifier. The identifier may be a numerical value that corresponds with the hotword, keyword, or key phrase. The identifier may be an alphanumeric value that corresponds with the hotword, keyword, or key phrase, e.g., the text of the corresponding hotword, keyword, or key phrase.

In some implementations, an audio watermark may include data specifying that a hotword, a keyword, or a key phrase is encoded in the audio data stream <NUM>. For instance, the data may specify generally that a hotword, a keyword, or a key phrase is encoded in the audio data stream <NUM> without identifying the specific encoded hotword, keyword, or key phrase.

After the watermark encoding module <NUM> inserts the audio watermark <NUM> into the audio data stream <NUM>, the playback device <NUM> provides the modified audio data stream <NUM> for output. The playback device <NUM> provides the modified audio data stream <NUM> to the speaker <NUM> to cause the speaker <NUM> to present the modified audio data stream <NUM>. The playback device <NUM> may provide a corresponding video stream to the display <NUM> for presentation.

The speaker <NUM> may be integrated into the playback device <NUM>, or external from and connected to the playback device <NUM>. For instance, the speaker <NUM> may be part of the playback device <NUM>. In some examples, the speaker <NUM> may connect to the playback device <NUM> using a wireless connection, e.g., Bluetooth or another wireless network connection. The speaker <NUM> may connect to the playback device <NUM> using one or more wires, e.g., optionally using a stereo receiver or another device. In some implementations, the speaker <NUM> may connect to the playback device <NUM> using a digital audio and video connection. For example, the playback device <NUM> may be a universal serial bus device connected to a television or a receiver, which includes the speakers <NUM>.

The playback device <NUM> may synchronize presentation of the video stream with the modified audio data stream <NUM>. For example, the playback device <NUM> may ensure that the speaker <NUM> presents the modified audio data stream <NUM> while the display <NUM> concurrently presents a corresponding video portion of the video stream. The playback device <NUM> may use any appropriate method to incorporate the audio watermark <NUM> into the modified audio data stream <NUM>, to synchronize presentation of a corresponding video stream with the modified audio data stream <NUM>, or both.

When the automated speech recognizer <NUM> determines that a portion of the audio data stream <NUM> does not encode a hotword, a keyword, or a key phrase for which the automated speech recognizer <NUM> is configured to detect, the automated speech recognizer <NUM> determines to not provide the watermark encoding module <NUM> with a message about the portion of the audio data stream <NUM>. In some examples, the automated speech recognizer <NUM> determines that the playback device <NUM> should provide the audio data stream <NUM> for output without modification. Not providing the message to the watermark encoding module <NUM> allows the playback device <NUM> to provide the portion of the audio data stream <NUM> for output without modification, e.g., when the portion of the audio data stream <NUM> is not adjacent to another portion that encodes a hotword, a keyword, or a key phrase.

A listening device <NUM> may capture a presented portion of the audio data stream <NUM>, the modified audio data stream <NUM>, or both. For instance, the listening device <NUM> can include a microphone <NUM> that captures the presentation of an audio data stream by the speaker <NUM> included in the playback device <NUM>.

The listening device <NUM> provides the portion of the captured audio data stream to a key phrase detection module <NUM>. The key phrase detection module <NUM> may be an automated speech recognizer. The key phrase detection module <NUM> may be an automated hotword detection module, e.g., programmed to detect only a few specific hotwords. In some examples, the key phrase detection module <NUM> may be programmed to detect multiple different key phrases.

The key phrase detection module <NUM> analyzes the portion of the captured audio data stream to determine whether the portion of the captured audio data stream encodes a hotword, a keyword, or a key phrase for which the key phrase detection module <NUM> is configured to detect. When the key phrase detection module <NUM> determines that the portion of the captured audio data stream does not encode a hotword, a keyword, or a key phrase for which the key phrase detection module <NUM> is configured to detect, the key phrase detection module <NUM> may determine to stop analysis of the portion of the captured audio data stream, that the listening device <NUM> should not perform an action based on the portion of the captured audio data stream, or both. For example, the listening device <NUM> may determine not to perform an action based on the portion of the captured audio data stream because the portion of the captured audio data stream may be an unmodified portion of the audio data stream <NUM>, e.g., that does not encode any hotwords, keywords, or key phrases, may encode a hotword, keyword, or a key phrase for which the key phrase detection module <NUM> is not configured to detect, or both. In some examples, determining to not perform an action may include determining to maintain a sleep state, e.g., and to not exit the sleep state based on detection of the key phrase.

Determining not to perform an action responsive to a detected key phase may allow the listening device <NUM> to save computational resources, e.g., battery, processor cycles, memory, or a combination of two or more of these. For instance, if the listening device <NUM> were to wake up or perform an action responsive to the detected key phrase, the listening device <NUM> may activate additional software applications, hardware functions, or both, that consume one or more computational resources. In the awake mode, the listening device <NUM> may trigger a process to listen for additional key phrases, spoken after the detected key phrase, and analyze those additional key phrases to determine whether they include a command for the listening device <NUM>. By not performing an action, e.g., by maintaining the sleep state, upon detection of both a key phrase and an audio watermark and by not falsely triggering, the listening device <NUM> may conserve one or more computational resources.

When the key phrase detection module <NUM> determines that the portion of the captured audio data stream encodes a hotword, keyword, or key phrase for which the key phrase detection module <NUM> is configured to detect, the listening device <NUM> provides data for the portion of the captured audio data stream to a watermark detection module <NUM>. The key phrase detection module <NUM> may provide a message to the watermark detection module <NUM> that indicates that the watermark detection module <NUM> should analyze the captured audio data stream. In some examples, the key phrase detection module <NUM> may provide a message to another component in the listening device <NUM> and the other component may trigger the watermark detection module <NUM> analysis of the captured audio data stream.

In response to receipt of the message, or triggering by the other component, the watermark detection module <NUM> receives some of the captured audio data stream. The watermark detection module <NUM> may receive the portion that the key phrase detection module <NUM> determined included a hotword, a keyword, or a key phrase for which the key phrase detection module <NUM> is configured to detect. In some examples, the watermark detection module <NUM> may receive another portion of the captured audio data stream, e.g., that is included in the audio data stream near, adjacent to, or overlapping with the portion that the key phrase detection module <NUM> determined included a hotword, a keyword, or a key phrase.

The watermark detection module <NUM> analyzes the captured audio data stream to determine whether the captured audio data stream includes an audio watermark for the hotword, keyword, or key phase the key phrase detection module <NUM> detected in the captured audio data stream. When the watermark detection module <NUM> determines that the captured audio data stream includes an audio watermark for the hotword, keyword, or key phase, the listening device <NUM> determines to not perform an action based on the hotword, keyword, or key phase. For instance, the listening device <NUM> may determine to remain in a sleep state, not to change from a low power use state to a high power use state, or both. In some examples, when the watermark detection module <NUM> detects an audio watermark for the hotword, keyword, or key phase, the watermark detection module <NUM> may provide a message to the listening device <NUM> that indicates detection of the audio watermark. The listening device <NUM> may use the message from the watermark detection module <NUM> to determine to not perform an action, e.g., in conjunction with a message received from the key phrase detection module <NUM> that indicates detection of a hotword, keyword, or key phase. The listening device <NUM> may determine, using the message from the watermark detection module <NUM>, that the detected hotword, keyword, or key phase was not likely spoken by a person in a physical area near the listening device and not to perform an action specific to the detected hotword, keyword, or key phrase.

In some implementations, the listening device <NUM> may perform an action based on detection of both a key phrase and a corresponding audio watermark. The action may be specific to the audio watermark or specific to the combination of the key phrase and the audio watermark but is not specific to only the key phrase. For instance, the listening device <NUM> may determine to log data based on detection of the audio watermark <NUM> in the modified audio data stream <NUM> or based on detection of both the audio watermark <NUM> and the key phrase in the modified audio data stream <NUM>. The listening device <NUM> may determine the action using the actual content of the watermark <NUM>, e.g., may store information from the audio watermark such as the originating source of the content, the audio watermark <NUM>, or both, for future use.

When the watermark detection module <NUM> does not detect an audio watermark for the hotword, keyword, or key phase, the listening device <NUM> can perform an action for the detected hotword, keyword, or key phase. The action may be activation of the listening device <NUM>, a change from a low power use state to a high power use state, or another action specific to the detected hotword, keyword, or key phrase.

For instance, the listening device <NUM> may receive a message from the key phrase detection module <NUM> that indicates that the key phrase detection module <NUM> detected a hotword, keyword, or key phase encoded in an audio data stream captured by the microphone <NUM>. The listening device <NUM> may send the watermark detection module <NUM> an activation message that causes the watermark detection module <NUM> to analyze the audio data stream for an audio watermark for the detected hotword, keyword, or key phase. When the watermark detection module <NUM> does not detect an audio watermark for the hotword, keyword, or key phase, the watermark detection module <NUM> may send a message to the listening device <NUM> that indicates the non-detection of the audio watermark. The listening device <NUM> may use both messages, from the key phrase detection module <NUM> and the watermark detection module <NUM>, to determine that a person in a physical area near the listening device likely spoke the detected hotword, keyword, or key phase, and to perform an action that corresponds with the detected hotword, keyword, or key phase.

In some implementations, the playback device <NUM> may include a watermark detection module. The playback device <NUM> may use the watermark detection module to determine whether to add an audio watermark to an audio data stream <NUM> upon detection of a hotword, a keyword, or a key phrase in the audio data stream <NUM>. For instance, when the automated speech recognizer <NUM> detects an occurrence of a hotword, keyword, or key phrase in a portion of the audio data stream <NUM>, the automated speech recognizer <NUM>, or the playback device <NUM>, provides a message to the watermark detection module. The watermark detection module uses the message to determine a portion of the audio data stream <NUM> to analyze. The watermark detection module analyzes the determined portion of the audio data stream <NUM> to determine whether the determined portion includes a watermark, e.g., an audio watermark, a video watermark, or both. When the watermark detection module determines that the audio data stream <NUM> does not include a watermark, the playback device <NUM> proceeds as described above, e.g., the watermark encoding module <NUM> inserts the audio watermark <NUM> into the audio data stream to create the modified audio data stream <NUM>.

When the watermark detection module determines that the audio data stream <NUM> includes a watermark, the watermark detection module determines whether an audio watermark for the detected key phrase should be added to the audio data stream <NUM>. For instance, the watermark detection module determines whether the detected watermark corresponds to the detected key phrase, e.g., whether the detected watermark includes data that identifies the detected key phrase, whether a location for the detected watermark corresponds to a location for the detected key phrase in the audio data stream <NUM>, or both. A first location for a detected watermark may correspond to a second location for the detected key phrase when the first location is within a threshold distance, e.g., time wise, from the second location.

When the watermark detection module determines that the detected watermark does not correspond to the detected key phrase, the playback device <NUM> causes the watermark encoding module <NUM> to add an audio watermark, e.g., the audio watermark <NUM>, to the audio data stream <NUM> to create the modified audio data stream <NUM>. For instance, the watermark detection module determines that the first location is not within the threshold distance from the second location and, in response, the watermark encoding module <NUM> adds the audio watermark <NUM> to the audio data stream <NUM>.

When the watermark detection module determines that the detected watermark corresponds to the detected key phrase but does not include specific data for the key phrase, e.g., a source of the audio data stream, the playback device <NUM> may cause the watermark encoding module <NUM> to add an audio watermark. For instance, the watermark detection module may determine that the watermark identifies text for the detected key phrase, corresponds in location to a location of the detected key phrase in the audio data stream <NUM>, or both, but does not include the name of a source of the audio data stream. In response, the watermark detection module may determine that the playback device <NUM> should insert the audio watermark <NUM> with the name of the source into the audio data stream <NUM>.

When the watermark detection module determines that the playback device <NUM> should not insert an audio watermark into the audio data stream <NUM>, the playback device <NUM> determines not to send a message about the detected key phrase to the watermark encoding module <NUM>. For instance, the playback device <NUM> determines to take no further action based on the detected key phrase, e.g., and to provide the portion of the audio data stream <NUM> that encodes the detected key phrase for output via the speaker <NUM>.

The playback device <NUM> is a server. In some implementations, the playback device <NUM> may receive the audio data stream <NUM> using a web browser that requested the audio data stream <NUM>. Some examples of listening devices <NUM> may include personal computers, mobile communication devices, personal security systems, Internet of Things devices, and other devices that can capture the audio data presented by the playback device <NUM>, e.g., using the microphone <NUM>.

<FIG> is a flow diagram of a process <NUM> for modifying an audio data stream based on key phrase detection. For example, the process <NUM> can be used by the playback device <NUM> from the environment <NUM>.

A playback device receives input defining a particular hotword, keyword, or key phrase (<NUM>). For instance, the playback device may receive user input that defines the particular hotword, keyword, or key phrase. The user input may be speech input, e.g., received via a microphone. The user input may be text input, e.g., received via a keyboard or remote control. In some implementations, the particular hotword, keyword, or key phrase may be defined by an administrator, e.g., configuring an automated speech recognizer or an automated hotword detection module included in the playback device.

In some implementations, the playback device may receive the input from another device. For example, the playback device may receive the input from a device that activates in response to receipt of an audio signal encoding a hotword, e.g., the listening device <NUM>. The playback device may receive the input from the other device to allow the playback device to dynamically determine for which hotwords, keywords, or key phrases, upon detection in an audio data stream, to add an audio watermark to the audio data stream.

In some implementations, the particular hotword, keyword, or key phrase may be fixed. For instance, the playback device may have data for one or more predetermined hotwords, keywords, or key phrases. The predetermined hotwords, keywords, or key phrases may be specific to a particular listening device, or a particular type of listening device, e.g., all of which have the same operating system. Use of a fixed hotword, keyword, or key phrase may allow the playback device to add audio watermarks for those phrases in instances when the playback device is not customized for a particular listening device that receives an audio data stream outputted by the playback device. For instance, when the playback device adds audio watermarks to an audio data stream for hotwords, keywords, or key phrases specific to a group of different types of listening devices, e.g., a group of different operating systems, the playback device may reduce a likelihood of a listening device falsely triggering based on encoding of a hotword, keyword, or key phrase in the audio data stream.

In some examples, the playback device may receive input that defines a key phrase from multiple sources. For instance, the playback device may receive user input that defines a first hotword from a first user and second input that defines a second hotword, or key phrase, from a listening device, e.g., operated by a second user. The playback device may use data for both the first hotword and the second hotword to analyze audio data streams and determine whether to add an audio watermark to an audio data stream.

The playback device receives an audio data stream (<NUM>). For instance, the playback device receives the audio data stream from a content provider. The content provider may be any appropriate type of content provider. Some examples of content providers include a streaming media provider, a cable provider, and an audio streaming provider.

The playback device may receive the audio data stream prior to providing the portion of the audio data stream for output. The playback device may receive the audio data stream through a wired or wireless input connection other than a microphone.

The playback device determines whether a portion of the audio data stream encodes the particular hotword, keyword, or key phrase (<NUM>). The playback device may use any appropriate method, system, or both, to determine whether a portion of the audio data stream encodes the particular hotword, keyword, or key phrase. For instance, the playback device may use an automated speech recognizer to analyze the portion of the audio data stream and determine whether the portion encodes a hotword, a keyword, or a key phrase.

In some examples, the playback device may determine whether any one of multiple hotwords, keywords, key phrases, or a combination of two or more of these, is encoded in the audio data stream. For instance, the playback device may determine whether the portion of the audio data stream encodes either a particular keyword or a particular key phrase.

The playback device may receive another portion of the audio data stream concurrently with determining, before the audio data stream is output by the playback device, whether the portion of the audio data stream encodes the particular hotword, keyword, or key phrase by analyzing the portion using the automated speech recognizer. For instance, the playback device may receive a first portion of the audio data stream. While the playback device analyzes the first portion of the audio data stream using the automated speech recognizer, the playback device may concurrently receive a second portion of the audio data stream. The second portion may be subsequent to the first portion without any intermediary portions of the audio data stream. In some examples, the second portion may be subsequent to the first portion with an intermediary portion of the audio data stream between the first portion and the second portion.

When the playback device determines that a portion of the audio data stream encodes the particular hotword, keyword, or key phrase, the playback device modifies the audio data stream to include an audio watermark (<NUM>). For example, the playback device may determine a portion of the audio data stream in which to include the audio watermark. The determined portion may be the portion that encodes the hotword, keyword, or key phrase. The determined portion may be another portion of the audio data stream, different from the portion that encodes the hotword, the keyword, or the key phrase.

The playback device may determine an audio watermark to include in the audio data stream. In some examples, the playback device may dynamically generate the audio watermark, e.g., using data for the audio data stream. For instance, the playback device can determine data for a source of the audio data stream, data for the encoded hotword, keyword, or key phrase, or both, and include the determined data in the audio watermark. In some implementations, the playback device may select an audio watermark from a database of audio watermarks. For example, the playback device may use a source of the audio data stream, the encoded hotword, keyword, or key phrase, or both, to select an audio watermark from the database. The playback device may include the selected audio watermark in the audio data stream.

The playback device provides the modified audio data stream for output (<NUM>). For example, in response to modifying the audio data stream to include the audio watermark, the playback device may provide the modified audio data stream for output. Providing the modified audio data stream for output may cause a speaker, included in the playback device, to present, e.g., audibly, the modified audio data stream.

When the playback device determines that the portion of the audio data stream does not encode the particular hotword, keyword, or key phrase, the playback device determines to skip modifying the audio data stream to include an audio watermark (<NUM>). For instance, the playback device determines to not modify the audio data stream based on the portion of the audio data stream that does not encode the particular hotword, keyword, or key phrase. The playback device may determine to skip modification of a proceeding portion of the audio data stream that is prior to the portion of the audio data stream that does not encode the particular hotword, keyword, or key phrase.

In some implementations, when the playback device determines to modify the audio data stream, the playback device may determine to modify a portion of the audio data stream for which the playback device previously determined to skip modification of the audio data stream. For instance, the playback device may analyze two different portions of an audio data stream, a first portion and a second portion. The playback device may determine that the first portion does not encode a hotword, a keyword, or a key phrase and, in response, to skip modification of the audio data stream based on the first potion. The playback device may then analyze the second portion, as a portion of the audio data stream subsequent and adjacent to the first portion of the audio data stream. The playback device may determine that the second portion of the audio data stream encodes the particular hotword, keyword, or key phrase and, in response, to modify the audio data stream. In response to the modification determination, the playback device may determine to include an audio watermark in the first portion of the audio data stream.

The playback device provides the audio data stream for output (<NUM>). For instance, in response to determining to skip modifying the audio data stream, the playback device may provide the audio data stream, or a portion of the audio data stream, for output. The playback device may provide the audio data stream to a speaker to cause the speaker to present the audio data stream, or the portion of the audio data stream.

The order of steps in the process <NUM> described above is illustrative only, and modifying the audio data stream based on hotword detection can be performed in different orders. For example, the playback device may receive a portion of an audio data stream, receive input defining the particular hotword, and then determine whether a portion of the audio data stream encodes the particular hotword.

In some implementations, the process <NUM> can include additional steps, fewer steps, or some of the steps can be divided into multiple steps. For example, the playback device may receive the audio data stream, determine whether a portion of the audio data stream encodes the particular hotword, and, if so, modify the audio data stream to include the audio watermark, e.g., perform steps <NUM> through <NUM>. After performing these steps, the playback device may provide the modified audio data stream for output.

In some implementations, a playback device may perform one or more steps of the process <NUM> multiple times. For instance, the playback device may receive an audio data stream, determine that a first portion of the audio data stream encodes the particular hotword, and modify the audio data stream, e.g., a second portion near the first portion that potentially includes at least some of the first portion. The playback device may then receive a third portion of the audio data stream, determine that the second portion does not encode the particular hotword, and determine to skip modification of a fourth portion of the audio data stream. The second portion may be selected to allow a listening device, which receives the modified audio data stream, to use the audio watermark to identify the particular hotword and act accordingly based on the combination of the audio watermark and the particular hotword. For example, the playback device may select a location of the second portion to allow a listening device to detect both the audio watermark and the particular hotword and response accordingly, e.g., to not take any action based on receipt of both the audio watermark and the particular hotword. The listening device may determine not to perform an action based on the particular hotword because of receipt of the audio watermark in the second portion of the audio data stream. In some examples, the second portion may be the same portion of the audio data stream as the first portion. In some examples, the second portion may include a portion of the audio data stream prior to the first portion, and may include some of the first portion. The fourth portion of the audio data stream may be selected based on the location of the third portion in the audio data stream. For instance, the fourth portion may be the same portion of the audio data stream as the third portion.

In some implementations, the playback device may encode an audio watermark, or multiple different audio watermarks, in the audio data stream until the playback device determines that a portion of the audio data stream encodes the particular hotword, keyword, or key phrase. For instance, the playback device may encode an audio watermark in each portion of the audio data stream that does not include a hotword, a keyword, or a key phrase. This may allow a listening device to capture presentation of an audio data stream by the playback device and determine which portions of the captured audio data stream include an audio watermark. The listening device could then analyze, with a key phrase detection module, only those portions of the captured audio data stream that include an audio watermark and, in response, perform an action that corresponds to the detected key phrase. When the listening device determines that a portion of the captured audio data stream does not include an audio watermark, the listening device may determine to skip analysis, by the key phrase detection module, of the portion that does not include the audio watermark.

Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible non-transitory program carrier for execution by, or to control the operation of, data processing apparatus.

Computers suitable for the execution of a computer program include, by way of example, general or special purpose microprocessors or both, or any other kind of central processing unit. Moreover, a computer can be embedded in another device, e.g., a mobile telephone, a smart phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device, e.g., a universal serial bus (USB) flash drive, to name just a few.

To provide for interaction with a user, embodiments of the subject matter described in this specification can be implemented on a computer having a display device, e.g., LCD (liquid crystal display), OLED (organic light emitting diode) or other monitor, for displaying information to the user and a keyboard and a pointing device, e.g., a mouse or a trackball, by which the user can provide input to the computer.

<FIG> is a block diagram of computing devices <NUM>, <NUM> that may be used to implement the systems and methods described in this document, as either a client or as a server or plurality of servers. Computing device <NUM> is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, smartphones, smart televisions, tabletop assistants, smart speakers, servers, blade servers, mainframes, and other appropriate computers. Computing device <NUM> is intended to represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, smartwatches, smart televisions, smart speakers, tabletop assistants, head-worn devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations described and/or claimed in this document.

The low-speed expansion port, which may include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet) may be coupled to one or more input/output devices, such as a keyboard, a pointing device, a speaker, a microphone, a scanner, or a networking device such as a switch or router, e.g., through a network adapter.

The processor <NUM> can process instructions for execution within the computing device <NUM>, including instructions stored in the memory <NUM>. The processor may also include separate analog and digital processors.

The display <NUM> may be, for example, a TFT LCD display or an OLED display, or other appropriate display technology. External interface <NUM> may provide, for example, for wired communication (e.g., via a docking procedure) or for wireless communication (e.g., via Bluetooth or other such technologies).

Expansion memory <NUM> may also be provided and connected to device <NUM> through expansion interface <NUM>, which may include, for example, a SIMM card interface. Thus, for example, expansion memory <NUM> may be provided as a security module for device <NUM>, and may be programmed with instructions that permit secure use of device <NUM>.

The memory may include for example, flash memory and/or MRAM memory, as discussed below. The information carrier is a computer- or machine-readable medium, such as the memory <NUM>, expansion memory <NUM>, or memory on processor <NUM>.

In addition, GPS receiver module <NUM> may provide additional wireless data to device <NUM>, which may be used as appropriate by applications running on device <NUM>.

These computer programs (also known as programs, software, software applications or code) include machine instructions for a programmable processor, and can be implemented in a high-level procedural and/or obj ect-oriented programming language, and/or in assembly/machine language.

Claim 1:
A computer-implemented method that is executed by a playback device (<NUM>) which is a server, the method comprising:
receiving an audio data stream;
determining, before the audio data stream is output by the playback device, whether the audio data stream encodes a key phrase;
when the audio data stream encodes the key phrase, inserting multiple audio watermarks into the audio data stream to create a modified audio data stream, the multiple audio watermarks encoding data that indicates the audio data stream originated from a content provider; and
providing the modified audio data stream to a speaker to cause the speaker to present the modified audio data stream.