User adaptive volume selection
The volume selection model dynamically adjusts the volume of the virtual assistant's response based on the characteristics of user input, which solves the problem of the virtual assistant's response volume being inappropriate, improves the user experience, and ensures that the response volume is suitable for different environments and scenarios.
Patent Information
- Application Number
- CN202410808890.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-10-05
- Filing Date
- 2019-09-17
- Publication Date
- 2024-09-27
AI Technical Summary
When virtual assistants respond to user requests, the volume often cannot adapt to different environments and usage scenarios, causing the response sound to be too low or too loud, affecting the user experience.
It adopts a volume selection model and uses machine learning technology to dynamically adjust the volume based on non-sound and sound characteristics input by the user (such as voice loudness, environmental noise, device type, etc.), providing users with adaptive volume selection to ensure that the response volume is suitable for the current situation.
It effectively solves the problem of inappropriate response volume of virtual assistants, ensures that the response volume is suitable in different environments and scenarios, improves user experience, and avoids interference and inconvenience caused by too large or too small responses.
Smart Images

Figure CN118708148A
Abstract
Description
[0001] This application is a divisional application of the invention patent application with application number 201910875285.6, application date September 17, 2019, and name “User Adaptive Volume Selection”. Technical Field
[0002] The present disclosure relates to audio response. In particular, the present disclosure relates to audio response volume. Background Art
[0003] A virtual assistant is a software service that performs tasks in response to user input (e.g., voice input or text input). User input is a request for a virtual assistant to perform a specific task. User requests can take many different forms, such as questions (e.g., "What's the weather like today?"), instructions (e.g., "Tell me about today's weather"), sentence fragments (e.g., "Today's weather"), or single words (e.g., "weather"). Typically, a virtual assistant is not limited to using a single software application to perform tasks. A virtual assistant can access application programming interfaces (APIs) of various software applications and / or services to perform tasks based on user requests. Depending on the specific implementation, examples of tasks that a virtual assistant can perform include, but are not limited to: scheduling reminders; checking the weather; controlling music or video playback; launching an application; checking an appointment in a calendar; scheduling an appointment; making an audio and / or video call; checking voicemail; sending a text message; dictating a received text message or email; setting a timer; checking stocks; performing unit conversions (e.g., miles to kilometers); solving math problems; controlling camera functions; enabling and / or disabling hardware functions (e.g., Bluetooth or wi-fi); searching the Internet; providing directions to a location, and the like.
[0004] Some virtual assistants are included in consumer hardware such as smartphones, tablets, televisions, speakers, etc. Examples of virtual assistants included in consumer hardware include, but are not limited to: Apple Google Assistant TM ; Amazon Alexa TM Alternatively or additionally, virtual assistants may be used in other contexts, such as call centers or online customer support. There are many different kinds of virtual assistants.
[0005] In some cases, when a user submits a request to a virtual assistant, the virtual assistant generates an audio response to the user's request. The audio response may include information requested by the user, confirmation that the requested task has been completed, a request for the user to repeat or clarify the user input, or any other type of audio response or combination thereof. In one example, a user asks the virtual assistant, "What will the weather be like tomorrow?" The virtual assistant accesses a weather service to obtain information about the weather for the next day. In response to the user's request, the virtual assistant responds via a speaker, "Tomorrow the weather will reach 64 degrees with thunderstorms." In another example, the user tells the virtual assistant, "Set the timer to five minutes." The virtual assistant sets the timer to five minutes. In response to the user's request, the virtual assistant responds via a speaker, "The timer has been set." In another example, the user submits a request containing only the word "text" to the virtual assistant. The virtual assistant responds via a speaker, "Who should I send your text message to?" Based on the virtual assistant's response, the user can provide additional input, such as the name of an individual in the user's digital address book. In response to the additional input, the virtual assistant can generate additional audio responses. The virtual assistant can provide many different types of audio responses to many different types of user requests.
[0006] When the virtual assistant provides an audio response to a user request, the response may be too quiet or too loud, that is, the volume level of the response may be too low or too high for the context in which the response is provided. The volume level of the virtual assistant's response may be the last used volume. For example, the user may have set the volume to a level suitable for ringtone volume, media playback, or some other purpose. The volume level set by the user for one purpose may not be suitable for the virtual assistant's response. Alternatively or additionally, the last used volume may be set in a different environmental context. The volume level set by the user for one context may not be suitable for another context. In one example, the user submits a request to the virtual assistant while walking along a noisy street. The virtual assistant's response is too quiet and the user cannot distinguish the response. In another example, the user submits a request to the virtual assistant while putting a baby to sleep. The virtual assistant's response is too loud and wakes the baby. There are many different situations in which the virtual assistant's response may be too quiet or too loud for the context in which the response is provided. Generally speaking, a virtual assistant's response that is too quiet may be indistinguishable, while a virtual assistant's response that is too loud may be disruptive.
[0007] The approaches described in this section are approaches that could be pursued, but are not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] These embodiments are shown in the accompanying drawings by way of example, and not by way of limitation. It should be noted that reference to "one" or "an" embodiment in the present disclosure does not necessarily refer to the same embodiment, and refers to at least one embodiment. In the accompanying drawings:
[0009] Figure 1 A system according to an embodiment is shown;
[0010] Figure 2 shows a volume selection model according to an embodiment;
[0011] Figure 3 A training system according to an embodiment is shown;
[0012] Figure 4 shows a set of operations for user adaptive volume selection according to an embodiment;
[0013] Figure 5 shows a set of operations for selecting a volume level using a volume selection model according to an embodiment;
[0014] Figure 6A-6F shows an example according to an embodiment; and
[0015] Figure 7 A computer system is shown in accordance with one or more embodiments. DETAILED DESCRIPTION
[0016] In the following description, for the purpose of explanation, many specific details are set forth in order to provide a thorough understanding. One or more embodiments may be practiced without these specific details. Features described in one embodiment may be combined with features described in different embodiments. In some examples, well-known structures and devices are described with reference to block diagram form to avoid unnecessarily obscuring the present invention.
[0017] 1. General Overview
[0018] 2. Architecture Overview
[0019] 2.1. Volume selection model
[0020] 2.2. Training System
[0021] 3. User-adaptive volume selection
[0022] 4. Illustrative Examples
[0023] 5. Miscellaneous; Extensions
[0024] 6. Hardware Overview
[0025] 7. Computer Networks and Cloud Networks
[0026] 8. Microservice Applications
[0027] 1. General Overview
[0028] One or more embodiments include calibrating a volume selection model for a virtual assistant. The volume selection model selects an initial volume level for the virtual assistant to play a response to a request. However, after or during the playing of the response, the user input specifies a new volume level. Based on the user input, the volume selection model is calibrated so that when a future request having substantially similar characteristics to a previous request is received, the volume selection model selects a volume level substantially similar to the new volume level specified by the user input for the response. The request characteristics may include non-sound characteristics (e.g., the time of the request, ambient light, the type of audio device used, and / or any other type of non-sound characteristics). The request characteristics may include sound characteristics (e.g., a whispered request, an echo indicating the distance of the user from the microphone, a request received along with background noise that produces a low signal-to-noise ratio, a request received along with background noise that produces a high signal-to-noise ratio, and / or any other type of sound characteristics).
[0029] One or more of the embodiments described in the specification and / or recited in the claims may not be included in this “General Overview” section.
[0030] 2. Architecture Overview
[0031] Figure 1 A system 100 is shown according to one or more embodiments. Figure 1 As shown, system 100 includes an audio device 102, a virtual assistant 106, a server 112, and various components thereof. In one or more embodiments, system 100 may include Figure 1 More or fewer components than shown. Figure 1 The components shown may be local or remote from each other. Figure 1 The components shown can be implemented in software and / or hardware. Each component can be distributed on multiple applications and / or machines. Multiple components can be combined into one application and / or machine. The operations described for one component can be performed by another component instead. Additional embodiments and / or examples related to computer networks are described below.
[0032] In an embodiment, system 100 includes audio device 102. Audio device 102 can be any kind of device configured to receive audio input and / or output audio. Audio device 102 can be implemented on one or more digital devices. The term "digital device" generally refers to any hardware device including a processor. A digital device can refer to a physical device that executes an application or a virtual machine. Examples of digital devices include computers, tablet computers, laptops, desktops, netbooks, servers, web servers, network policy servers, proxy servers, general machines, function-specific hardware devices, hardware routers, hardware switches, hardware firewalls, hardware firewalls, hardware network address translators (NATs), hardware load balancers, mainframes, televisions, content receivers, set-top boxes, printers, mobile handheld devices, smart phones, personal digital assistants ("PDAs"), wireless receivers and / or transmitters, base stations, communication management devices, routers, switches, controllers, access points, and / or client devices.
[0033] In an embodiment, the audio device 102 includes a microphone 104 through which a user supplies audio input, such as a request to the virtual assistant 106. Alternatively or additionally, the audio device 102 may include a speaker 105 through which the audio device outputs audio, such as an audio response generated by the virtual assistant 106. The audio input and output functions may be distributed across multiple audio devices. The system 100 may receive audio input via a microphone in one audio device and output an audio response through a speaker in another audio device.
[0034] In an embodiment, the system 100 includes a virtual assistant 106. The virtual assistant 106 may include any kind of hardware and / or software configured to receive user input (e.g., audio input and / or text input) and perform tasks based on the user input. In an embodiment, the virtual assistant 106 includes a response engine 108 configured to generate responses to user requests. In order to generate responses to user requests, the response engine 108 may access one or more application programming interfaces (APIs) (not shown) of one or more software applications and / or services. In an embodiment, the virtual assistant 106 includes hardware and / or software configured to perform the operations described herein for user adaptive volume selection. An example of an operation for user adaptive volume selection is described below.
[0035] In an embodiment, the virtual assistant 106 is configured to perform user-adaptive volume selection using a volume selection model 110. An example of a volume selection model 110 is described below. The virtual assistant 106 may include a single volume selection model 110 for performing user-adaptive volume selection for a single user. Alternatively or additionally, the virtual assistant 106 may include a single volume selection model 110 for performing user-adaptive volume selection for multiple users (i.e., multiple users of a single audio device 102 or multiple users of different audio devices). Alternatively or additionally, the virtual assistant 106 may include multiple volume selection models 110, each volume selection model 110 being associated with one or more different users. The virtual assistant 106 may be able to distinguish between different users and may use different volume selection models based on the detected users. Alternatively or additionally, the virtual assistant 106 may be able to distinguish between different languages and may use different volume selection models based on the detected languages. Many different configurations of one or more volume selection models may be used based on many different criteria.
[0036] In an embodiment, the system 100 includes a server 112. The server 112 may include hardware and / or software (not shown) for communicating with a plurality of virtual assistants. The server 112 may include a baseline volume selection model 114, which represents a baseline or "out-of-the-box" configuration of a volume selection model. The server 112 may be configured to transmit the baseline volume selection model 114 to the virtual assistant 106 for use as an initial state of the volume selection model 110. Alternatively or additionally, the server 112 may be configured to receive calibration data associated with the volume selection model 110 from the virtual assistant 106. The server 112 may be configured to incorporate the calibration data into the baseline volume selection model 114.
[0037] In an embodiment, the audio device 102 includes all the functions of the virtual assistant 106. The audio device 102 may be a smart phone, a smart speaker, or other devices including a microphone 104, a speaker 105, and hardware and / or software that implements all the functions of the virtual assistant 106. Alternatively, the audio device 102 may include hardware and / or software that implements only a subset of the functions of the virtual assistant 106. For example, the virtual assistant 106 operating in the audio device 102 may be configured to transmit the user's input to the server 112 for natural language processing. Based on natural language processing, the server 112 may be configured to return data to the virtual assistant 106. The data returned to the virtual assistant 106 by the server 112 may include standardized forms of user input, programming instructions for performing specific tasks, and / or content corresponding to responses provided to the user (e.g., text and / or audio content). The virtual assistant 106 operating in the audio device 102 may be configured to perform the requested task and / or supply responses to the user based on the data returned by the server.
[0038] In an embodiment, virtual assistant 106 operates in a device separate from audio device 102. In one example, a smartphone includes some or all of the functionality of virtual assistant 106. Audio device 102 is a headset (e.g., a wired headset or a wireless headset) that includes microphone 104 and speaker 105. The audio device 102 may include a (Bluetooth) headset. The headset is communicatively coupled to the smartphone. The user supplies audio input to the smartphone via the headset and receives an audio response from the smartphone via the headset. In another example, the server 112 includes the full functionality of the virtual assistant 106. In this example, the audio device 102 transmits the user input to the virtual assistant 106 operating on the server 112. Based on the user input, the virtual assistant 106 can perform a task. The virtual assistant 106 generates a response, which the server 112 transmits back to the audio device 102.
[0039] Various configurations of audio device 102, virtual assistant 106, and server 112 are described above. These configurations are described by way of example only and should not be construed as limiting one or more embodiments.
[0040] 2.1. Volume selection model
[0041] As described above, the virtual assistant may include a volume selection model. Figure 2 FIG. 2 shows a volume selection model 200 according to an embodiment. In one or more embodiments, the volume selection model 200 may include a ratio Figure 2 More or fewer components than shown. Figure 2 The components shown may be local or remote from each other. Figure 2The components shown can be implemented in software and / or hardware. Each component can be distributed on multiple applications and / or machines. Multiple components can be combined into one application and / or machine. The operations described for one component can be performed by another component instead. Additional embodiments and / or examples related to computer networks are described below.
[0042] The volume selection model 200 is a collection of hardware and / or software configured to receive one or more inputs and apply the inputs to a volume selection function 202. Based on the inputs, the volume selection function 202 outputs a selected volume.
[0043] In an embodiment, the volume adjustment function 202 is based on one or more machine learning features 204. The machine learning feature 204 is a measurable attribute that determines, in whole or in part, the output of the volume selection function 202. In one embodiment, for each machine learning feature 204, the volume selection model 200 includes a corresponding feature-specific function 206 that calculates a volume adjustment factor 208. The volume adjustment function 202 can be a linear function based on the volume adjustment factor 208 calculated for each machine learning feature 204. In one example, the volume selection model 200 includes two machine learning features: feature A and feature B. Based on the input to the volume selection model 200, the volume selection model 200 calculates a volume adjustment factor (F1) for feature A and a volume adjustment factor (F2) for feature B. The volume adjustment function 202 is a linear function that selects a volume (V) based on the current volume (C) of the audio device and the two volume adjustment factors (F1 and F2). The following is an example of a linear volume selection function:
[0044] V=C x(F1+F2) / 2
[0045] Many different kinds of linear and / or nonlinear volume selection functions may be used. Continuing with this example, the volume selection model 200 determines that the current volume is eighty percent (80%). Based on the inputs to the volume selection model 200, the volume selection model 200 calculates F1 to be 0.5 and F2 to be 1.3. Applying these values to the volume adjustment function 202 yields:
[0046] V = 0.8 x (0.5 + 1.3) / 2 = 0.72
[0047] In this example, the volume selection model 200 will select a volume of 72%, which is lower than the current volume of 80%.
[0048] As described above, the volume adjustment function 202 can be based on one or more machine learning features 204. Many different kinds of machine learning features 204 can be used. In an embodiment, the machine learning feature 204 is based on the loudness of the voice detected in the audio input. The system can be configured to detect whether the user is whispering, shouting, or speaking at a conversational volume. Detecting the loudness of the voice can be based on objective loudness (e.g., wave amplitude), image recognition (e.g., detecting the proximity of the user's face and / or body to the camera in the audio device, or the user is not in the room where the audio device is located), speech characteristics (e.g., waveform characteristics associated with whispering and shouting), or any other measure of loudness or a combination thereof. The system can use machine learning to improve its ability to determine the loudness of the user's voice over time. If the user's voice is loud, the corresponding feature-specific function 206 can calculate a volume adjustment factor 208 that increases the volume of the virtual assistant's audio response. If the user's voice is soft, the corresponding feature-specific function 206 can calculate a volume adjustment factor 208 that reduces the volume of the virtual assistant's audio response.
[0049] In an embodiment, the machine learning features 204 are based on the distance between the audio device and the user supplying the audio input to the audio device. The distance can be an estimate based on one or more measured attributes. In one example, the system determines that the user's voice has attributes associated with shouting. The system also determines that the audio input has a relatively low amplitude. Based on these attributes, the system estimates that the user is far away (e.g., shouting a request to the audio device from another room). In another example, the system determines that the user's voice has attributes associated with shouting. The system also determines that the audio input has a relatively high amplitude. Based on these attributes, the system estimates that the user is nearby (e.g., shouting directly at the audio device). In another example, the system determines that the user's voice has attributes associated with whispering. The system also determines that the audio input has a medium amplitude. Based on these attributes, the system estimates that the user is nearby (e.g., whispering directly at the audio device). In another example, the system determines that the user's voice has attributes associated with whispering. The system also determines that the audio input has a relatively low amplitude. Based on these attributes, the system estimates that the user is not close to the audio device (e.g., whispering on the other side of the room). In another example, the system analyzes leading and trailing echoes in the audio input. Based on the leading and trailing echoes, the system estimates how far the user is from the audio device. In one example, in a space without too much reflected sound, the loudness of omnidirectional sound is inversely proportional to the square of the distance from the sound source. The system can apply the inverse square law to estimate how far the user is from the audio device. If the user is far away from the audio device, the corresponding feature-specific function 206 can calculate a volume adjustment factor 208 that increases the volume of the virtual assistant's audio response. If the user is close to the audio device, the corresponding feature-specific function 206 can calculate a volume adjustment factor 208 that reduces the volume of the virtual assistant's audio response.
[0050] In an embodiment, the machine learning feature 204 is based on the ambient volume level. In one example, the system analyzes the audio input and divides it into two waveforms corresponding to the signal (i.e., the user's voice) and the noise (i.e., other noise in the audio input that is not the user's voice). The system determines the signal-to-noise ratio (SNR) between the user's voice and other noise in the audio input. A low signal-to-noise ratio (SNR) may indicate that the user is speaking in a noisy environment. The corresponding feature-specific function 206 can calculate a volume adjustment factor 208 that increases the volume of the virtual assistant's audio response. A high signal-to-noise ratio (SNR) may indicate that the user is speaking in a quiet environment. The corresponding feature-specific function 206 can calculate a volume adjustment factor 208 that uses a normal volume or reduces the volume of the virtual assistant's audio response. In another example, the system performs ambient noise monitoring even when the user does not provide audio input. The system can capture and store running ambient noise samples (e.g., the last 10 seconds). Alternatively or additionally, the system can calculate an average or peak waveform of ambient noise. The system may perform ambient noise monitoring at multiple locations (e.g., multiple rooms in a building) and may be able to distinguish between ambient noise at the location where the user is located and ambient noise at the location where the audio device is located. When the user provides audio input, the system may compare the results of the ambient noise monitoring with the loudness of the user's voice and use the corresponding feature-specific function 206 to calculate an appropriate volume adjustment factor 208.
[0051] In an embodiment, the system is able to identify ambient audio from the audio device itself (e.g., music, podcasts, news, or any other kind of ambient audio). When determining the amount of ambient noise, the system can discount the ambient audio from the audio device itself. When outputting the virtual assistant's audio response, the audio device can reduce its own ambient audio (e.g., pause a podcast or lower the volume of music).
[0052] In an embodiment, the machine learning features 204 are based on the type of audio device receiving the audio input and / or the type of audio device configured to output the audio response of the virtual assistant. In one example, the system determines that the user is shouting. The system also determines that the user is wearing an audio headset. Based on the fact that the user is wearing an audio headset, the corresponding feature-specific function 206 can calculate a volume adjustment factor 208 that keeps the volume at a normal level or increases the volume less than the volume of the user shouting into a speaker on the other side of the room.
[0053] In an embodiment, the machine learning features 204 are based on the language content of the audio input. Certain words or combinations of words can cause the corresponding feature-specific function 206 to calculate a volume adjustment factor 208, which increases or decreases the volume of the virtual assistant's audio response. In one example, the virtual assistant has multiple "roles" that can be called in different situations. "Roles" can correspond to "wake-up words" used to signal the virtual assistant that the user is submitting a request. In this example, one role is named "Stan" and is called under normal circumstances. Another role is named "Nanny" and is called when the baby is sleeping. When the user submits a request to the "Stan" role (for example, by asking "Stan, what time is it?"), the corresponding feature-specific function 206 calculates a volume adjustment factor 208, which does not change the volume of the virtual assistant's audio response. When the user submits a request to the "Nanny" role, the corresponding feature-specific function 206 calculates a volume adjustment factor 208, which reduces the volume of the virtual assistant's audio response.
[0054] Alternatively or additionally, the machine-learned features 204 can be based on sentiment expressed in the linguistic content of the audio input. A brief and / or curt request (e.g., "Tell me the weather") may warrant a louder response than a longer and / or milder request (e.g., "Please tell me what the weather is like today"). In general, based on the sentiment expressed in the linguistic content of the audio input, the corresponding feature-specific function 206 can calculate a volume adjustment factor 208 that increases or decreases the volume of the virtual assistant's audio response.
[0055] Alternatively or additionally, keywords in the user request can be used as a basis for increasing or decreasing the volume of the virtual assistant's audio response. For example, the user might say, "Tell me the weather quietly," or "Tell me loudly what time it is." Alternatively or additionally, phrases in the user request can be used as triggers to increase or decrease the volume of the virtual assistant's audio response. For example, the user might say, "Play the song 'Baby Beluga' for the baby." Based on the phrase "for the baby," the corresponding feature-specific function 206 can calculate a volume adjustment factor 208 that reduces the volume of the virtual assistant's audio response. Many different kinds of linguistic content in a user request can be used as a basis for increasing or decreasing the volume of the virtual assistant's audio response.
[0056] In an embodiment, the machine learning feature 204 is based on the time of day when the user submits the request to the virtual assistant. During typical wake time, the corresponding feature-specific function 206 can calculate a volume adjustment factor 208 that does not change the volume of the virtual assistant's audio response. During typical sleep time, the corresponding feature-specific function 206 can calculate a volume adjustment factor 208 that reduces the volume of the virtual assistant's audio response.
[0057] In an embodiment, the machine learning feature 204 is based on ambient light. The system may include a light sensor or other hardware element, such as a camera, which can be used to obtain light level readings. Based on the light sensor, the system can determine whether the audio device is located in a dark environment or a bright environment. If the audio device is located in a dark environment (implying night and / or a dark room), the corresponding feature-specific function 206 can calculate a volume adjustment factor 208, which reduces the volume of the audio response of the virtual assistant. If the audio device is located in a bright environment (implying daytime and / or a well-lit room), the corresponding feature-specific function 206 can calculate a volume adjustment factor 208, which does not change the volume of the audio response of the virtual assistant. If the audio device is located in an environment with flashing lights and / or colored lights (implying a bar or nightclub), the corresponding feature-specific function 206 can calculate a volume adjustment factor 208, which increases the volume of the audio response of the virtual assistant.
[0058] In an embodiment, the machine learning features 204 are based on the location of the user. The system may include a global positioning system (GPS) unit and / or other positioning technology. Using positioning technology, the system may determine the physical location of the user. In addition, the system may associate the user's physical location with a known location on a map, such as a restaurant, a store, a museum, a residence, etc. Based on the known location, the corresponding feature-specific function 206 may calculate a volume adjustment factor 208 that increases or decreases the volume of the virtual assistant's audio response. As an example, a user submits a request to a virtual assistant. Using the GPS location associated with the business location data, the system determines that the user is located at a restaurant. Based on the user's location, the corresponding feature-specific function 206 calculates a volume adjustment factor 208 that decreases the volume of the virtual assistant's audio response. As another example, a user submits a request to a virtual assistant. Using the GPS location associated with the business location data, the system determines that the user is located at a football stadium. Based on the user's location, the corresponding feature-specific function 206 calculates a volume adjustment factor 208 that increases the volume of the virtual assistant's audio response.
[0059] In an embodiment, the machine learning feature 204 is based on the identity of the user who submitted the request to the virtual assistant. The system can determine the identity of the user based on facial recognition (via a camera), voice recognition, fingerprint recognition, and / or any other kind of system that can distinguish between different users. As described above, the virtual assistant may include a single volume selection model 200 for performing user-adaptive volume selection for multiple users (i.e., multiple users of a single audio device or multiple users of different audio devices). Alternatively or additionally, the virtual assistant may include multiple volume selection models 200, each volume selection model associated with one or more different users. As described below, each user may be able to configure different volume preferences associated with the machine learning feature 204. Alternatively or additionally, the volume selection model 200 may use machine learning to adapt the feature-specific function 206 to a specific user.
[0060] In an embodiment, machine learning features 204 are based on characteristics of user speech as detected in audio input. As an example, a user with hearing impairment submits a request to a virtual assistant. The system analyzes the audio input and determines that the user speech has one or more characteristics that are typically associated with hearing impairment. Based on the analysis results, a corresponding feature-specific function 206 calculates a volume adjustment factor 208 that increases the volume of the virtual assistant's audio response.
[0061] In an embodiment, the machine learning feature 204 is based on the current volume level of the audio device. When the volume adjustment function 202 outputs the selected volume, the selected volume can correspond to the amplitude of the waveform that encodes the audio response of the virtual assistant. The amplitude of the waveform can be independent of the master volume setting of the audio device. In this case, if the waveform amplitude is very high and the master volume of the audio device is already high, the audio response of the virtual assistant may be louder than expected. If the waveform amplitude is low and the master volume of the audio device is already low, the audio response of the virtual assistant may be quieter than expected. In order to take into account the change of the master volume of the audio device, the system can detect the master volume of the audio device. The corresponding feature-specific function 206 can calculate a volume adjustment factor 208, which increases or decreases the volume of the audio response of the virtual assistant. Alternatively, when the volume adjustment function 202 outputs the selected volume, the system can use the selected volume to directly control the master volume of the audio device.
[0062] In an embodiment, the machine learning features 204 are based on audio input received from audio sensors in multiple locations (e.g., multiple rooms in a building). In one example, the system includes multiple audio sensors configured to receive audio in multiple locations. (Bluetooth) Beacons. By using multiple audio sensors, the system's ability to detect ambient noise, estimate the user's distance from a speaker, etc. can be improved.
[0063] In an embodiment, the machine learning features 204 may be configured by a user. Specifically, a user may access an interface (not shown) that provides one or more user interface controls for configuring one or more machine learning features 204. The controls may allow a user to indicate whether the volume of the virtual assistant's audio response should be increased or decreased for a specific value or range of values associated with the machine learning feature 204. As an example, the volume selection model 200 includes a machine learning feature 204 based on the time of day. A user with children may indicate via a configuration interface that the volume of the virtual assistant's response should be reduced between 10:00 p.m. and 6:00 a.m. Another user working the night shift may indicate via a configuration interface that the volume of the virtual assistant's response should be reduced (or even muted) from 12:00 p.m. to 8:00 p.m. The configuration interface may provide many different configuration options.
[0064] 2.2. Training System
[0065] In an embodiment, the system is configured to train a volume selection model based on training data and / or real-time data using machine learning techniques. As used herein, training a volume selection model means configuring the volume selection model to select a specific volume based on one or more specific inputs. To train the volume selection model, the training system may adjust a feature-specific function so that the feature-specific function outputs a different volume adjustment factor than it might have output prior to training.
[0066] Figure 3 FIG. 3 shows a training system 300 according to one or more embodiments. In one or more embodiments, the training system 300 may include a Figure 3 More or fewer components than shown. Figure 3 The components shown may be local or remote from each other. Figure 3 The components shown can be implemented in software and / or hardware. Each component can be distributed on multiple applications and / or machines. Multiple components can be combined into one application and / or machine. The operations described for one component can be performed by another component instead. Additional embodiments and / or examples related to computer networks are described below.
[0067] In an embodiment, before any configuration, the volume selection model 302 has an initial state. Starting from the initial state, the training system 300 can train the volume selection model 302 based on the training data 304. The training data 304 includes one or more sets of pre-labeled inputs 306. The pre-labeled inputs 306 can include audio files and / or any other kind of input related to the machine learning features (not shown) included in the volume selection model 302. As used herein, the term "pre-labeled" means that the training data 304 includes, for each pre-labeled input 306, data defining the output (i.e., the volume selection of the volume selection model 202) corresponding to the provided audio and / or other kind of input. The training system 300 can apply supervised learning techniques to train the volume selection model 302 based on the training data 304. In an embodiment, supervised learning trains the volume selection model so that given the value of the machine learning feature that is the same or substantially similar to the value in the training data 304, the volume selection model 302 selects a volume level that is considered "correct" according to the label associated with the training data 304. In one example, training system 300 uses a linear regression model to train volume selection model 302. Once training system 300 has trained volume selection model 302 based on training data 304, the virtual assistant can use the resulting volume selection model 302 as an initial “out-of-the-box” configuration.
[0068] In an embodiment, after the volume selection model 302 is deployed to the virtual assistant in the "real-time" environment, the training system 300 continues to train the volume selection model 302 using the real-time data 310. The real-time data 310 includes one or more sets of unlabeled inputs 312. The unlabeled inputs 312 may include audio files and / or any other type of input related to the machine learning features (not shown) included in the volume selection model 302. As used herein, the term "real-time" means that the real-time data 310 includes data associated with requests made by one or more end users. The "real-time" environment may also be referred to as a "production" environment. As used herein, the term "unlabeled" means that the training data 304 does not include any data that defines the output (i.e., the volume selection of the volume selection model 202) corresponding to the provided audio and / or other types of inputs for the unlabeled inputs 312. The training system 300 can apply machine learning techniques to train the volume selection model 302 based on the real-time data 310. In embodiments, the training system 300 may apply machine learning techniques based on user input (e.g., volume adjustments and / or other types of user input) and / or a lack of user input received after the audio device plays back the virtual assistant's audio response to support user-adaptive volume selection as described herein.
[0069] 3. User-adaptive volume selection
[0070] Figure 4 An example set of operations for user adaptive volume selection is shown in accordance with one or more embodiments. Figure 4 One or more of the operations shown in may be modified, rearranged, or omitted altogether. Figure 4 The particular order of operations shown in the drawings should not be construed as limiting the scope of one or more embodiments.
[0071] In an embodiment, the system generates a baseline volume selection model (operation 402). The baseline volume selection model represents an initial state of the volume selection model. In an embodiment, the baseline volume selection model is obtained by training the volume selection model using training data, as described above.
[0072] In an embodiment, the system trains a volume selection model based on real-time audio data (operation 404). In order to train the volume selection model based on real-time audio, the system can enter a training or "tutorial" mode in which the user is asked to provide audio input that meets specific criteria. As an example, a virtual assistant in a smartphone includes a training mode for training a volume selection model. The virtual assistant issues a series of prompts asking the user to provide audio input to a microphone. One prompt asks the user to speak in a normal voice. Another prompt asks the user to whisper. Another prompt asks the user to shout. Based on each audio input supplied by the user, the virtual assistant trains the volume selection model to better recognize different levels of voice loudness for that particular user. Alternatively or additionally, the virtual assistant can generate a series of audio outputs and prompt the user to indicate whether each audio output is too loud or too quiet. Based on the user's response, the virtual assistant trains the volume selection model to select an appropriate volume level for the audio response. The system can use many different kinds of training methods with many different machine learning features.
[0073] In an embodiment, the system receives audio input (operation 406) that includes a user's request for a virtual assistant to perform a task. The system determines a response to the request (operation 408). To determine the response to the request, the system may access one or more APIs of one or more applications and / or services corresponding to the request. As an example, the request is to provide a weather report. In response to the request, the system accesses an API of a weather service to obtain weather data. In addition to the audio input, the system may also receive other data associated with one or more machine learning features. For example, the system may receive data from a light sensor, a time service, ambient volume monitoring, and / or any other kind of data related to one or more machine learning features.
[0074] In an embodiment, the system selects a volume level for a response to a request (operation 410). The system can use a volume selection model to select a volume level for a request. The use of a volume selection model to select a volume level will be discussed in more detail below. As described above, the selected volume can correspond to the amplitude of a waveform encoding an audio response of a virtual assistant. The amplitude of the waveform can be independent of the master volume setting of the audio device. In this case, if the waveform amplitude is very high and the master volume of the audio device is already high, the audio response of the virtual assistant may be louder than expected. If the waveform amplitude is low and the master volume of the audio device is already low, the audio response of the virtual assistant may be quieter than expected. Alternatively, when the volume adjustment function 202 outputs the selected volume, the system can use the selected volume to directly control the master volume of the audio device. After selecting a volume level for a response to a request, the system plays the response to the request at the selected volume level (operation 412).
[0075] In an embodiment, the system selects a volume level and plays back a response to the request after a certain valid amount of time has passed since receiving the user request. In one example, the user submits a request to set a timer. After the timer completes, the system plays an audio response indicating that the timer is complete. Due to the passage of time, the system may resample data associated with one or more machine learning features. The system may select a volume level for the response based on data that is closer in time to the response. For example, if the user is no longer in the room, the system may select a louder response volume than it would have selected if the user was still in the room. If the ambient noise has decreased since the user submitted the request, the system may select a smaller response volume than it would have selected if the ambient noise was louder. The values of many different machine learning features may differ in time between the user request and the virtual assistant's audio response, and changes in one or more values may affect the selected volume level.
[0076] In an embodiment, after playing the response to the request with the selected volume level, the system determines whether the selected volume level is acceptable to the user. The system can determine whether the selected volume level is acceptable to the user in many different ways. In an embodiment, the system determines whether the user has adjusted the output level of the audio device (operation 414). Specifically, after the system replays the response to the request with the selected volume level, the user can increase or decrease the output level of the audio device. Increasing or decreasing the output level of the audio device may indicate that the selected volume is too small (causing the user to increase the output level) or too loud (causing the user to reduce the output level). After replaying the response of the virtual assistant to the request, the determination of whether the user has adjusted the output level of the audio device can be limited to a specific amount of time (e.g., three seconds or some other predefined threshold time amount). If the user increases or decreases the output level of the audio device outside the threshold time period, the adjustment is no longer considered to be a reaction to the selected volume level.
[0077] In an embodiment, if the user adjusts the output level of the audio device, the system calibrates the volume selection model based on the user input, i.e., the user input for adjusting the output level (operation 418). Calibrating the volume selection model can adjust one or more feature-specific functions so that in the future, given the same value of the same machine-learned feature, the volume selection model will select a higher volume (if the user increases the output level) or a lower volume (if the user decreases the output level).
[0078] In an embodiment, the system determines whether the user requests that the response to the user's request be repeated (operation 416). The user may explicitly request that the virtual assistant repeat the same response, reissue the same query to the virtual assistant, issue a query that is differently worded but substantially similar to the virtual assistant, and / or provide any other type of input equivalent to a request to provide another response that is the same or substantially similar. Requesting a repeated response may indicate that the selected volume is too low. If the user requests a repeated response, the system may calibrate the volume selection model based on the user input, i.e., the audio input requesting a repeated response (operation 418). Specifically, the system may calibrate the volume selection model using machine learning techniques (e.g., linear regression and / or another class of machine learning techniques). The calibrated volume selection model may adjust one or more feature-specific functions so that in the future, given the same value of the same machine learning feature, the volume selection model will select a lower volume.
[0079] In an embodiment, after calibrating the volume selection model based on the user input, the system transmits the calibration data to the server (operation 420). The server can use the calibration data to calibrate the baseline volume selection model, thereby incorporating machine learning from one or more real-time volume selection models into the baseline volume selection model. The server can then provide the baseline volume selection model to other virtual assistants, providing other virtual assistants with a more accurate "out-of-the-box" volume selection model. In an embodiment, the system transmits the calibration data to the server only if the user has selected the sharing program, i.e., provided informed consent for the system to transmit the calibration data to the server.
[0080] In an embodiment, the user does not adjust the output level, does not request a repeat response, and / or does not give any other indication that the selected volume level is too low or too loud. When sufficient time (e.g., three seconds or some other predefined threshold amount of time) has passed without any indication that the selected volume level is too low or too loud, the system can confirm the selected volume level (operation 420). The system can confirm the selected volume level after receiving a predefined number of user queries (e.g., two, three, four, or any other predefined number) associated with a set of values of substantially similar machine learning features, without the user adjusting the output level. In an embodiment, to confirm the selected volume level, the system incorporates a confidence metric into the volume selection model, the confidence metric indicating an increased confidence that the selected volume level is correct for the associated value of the machine learning feature. The system can incorporate the confidence metric into the volume selection model in many different ways. For example, the system can incorporate the confidence metric as a new machine learning feature, a higher numerical weight associated with a particular machine learning feature and / or data point (e.g., a data point corresponding to the selected volume), and / or any other kind of confidence metric or combination thereof. The system can use machine learning techniques to incorporate a confidence measure into the volume selection model. After confirming the selected volume level, the volume selection model is more likely to select the same volume as before given the same value of the same machine learning feature in the future.
[0081] In an embodiment, the system then receives additional audio input (operation 406), which includes a user request for the virtual assistant to perform a task. The system can receive the audio input under similar circumstances to the previous audio input (e.g., ambient volume, time of day, loudness of the user's voice, etc.) or under different circumstances. As described above, the system continues to determine a response to the request, select a volume level for the response, and so on. If the system calibrated the volume selection model based on the earlier audio input, the system can select a different volume level for the response than it would have selected without calibration. In this way, based on the earlier machine learning process, subsequent responses can have more appropriate volume levels.
[0082] Figure 5 An example set of operations for selecting a volume level using a volume selection model is shown in accordance with one or more embodiments. Figure 5 One or more of the operations shown may be modified, rearranged, or omitted altogether. Figure 5 The particular order of operations shown should not be construed as limiting the scope of one or more embodiments.
[0083] In an embodiment, after receiving an audio input from a user, the system analyzes the audio input to determine one or more sound characteristics corresponding to the audio input (operation 502). As described above, the sound characteristics may include any characteristics related to machine learning features. Examples of sound characteristics may include, but are not limited to: loudness of speech (e.g., amplitude of a waveform); attributes of speech indicating whispering, shouting, and / or hearing impairment; detection of leading and / or trailing echoes; distinguishing between two or more user voices; calculating a signal-to-noise ratio; performing natural language processing to determine the language content of the audio input; ambient noise level; and / or any other kind of sound characteristics.
[0084] In an embodiment, the system may determine one or more non-sound characteristics associated with the audio input (operation 504). Non-sound characteristics are characteristics that are related to machine learning features and are not discernible from the audio input itself. Examples of non-sound characteristics may include, but are not limited to: time of day; ambient light; physical location of the user; type of device configured to play the audio response; facial recognition; and / or any other type of non-sound characteristic. Due to the proximity in time between receiving the audio input and determining the non-sound characteristic, the non-sound characteristic may be considered to be associated with the audio input.
[0085] In an embodiment, the system applies characteristics (i.e., acoustic characteristics and / or non-acoustic characteristics) associated with the audio input to a volume selection model (operation 506). Specifically, one or more characteristics may be used as input to a feature-specific function that calculates a volume adjustment factor. Based on the volume adjustment factor, the volume selection model calculates a volume adjustment function to select a volume level based on the characteristics associated with the audio input.
[0086] Embodiments described herein allow a virtual assistant to provide an audio response at a volume level appropriate to the context in which the response is being provided. The system uses machine learning to adjust a volume selection model based on user input, helping to ensure that the selected volume level meets the user's preferences and expectations. In environments where a loud response is desired, embodiments help ensure that the user can hear the audio response. In environments where a quiet response is desired, embodiments help avoid distractions caused by inappropriately loud audio responses.
[0087] 4. Illustrative Examples
[0088] For the sake of clarity, refer to Figure 6A-6F Detailed examples are described. The components and / or operations described below should be understood as a specific example that may not be applicable to certain embodiments. Therefore, the components and / or operations described below should not be interpreted as limiting the scope of any claim.
[0089] like Fig. 6A As shown, user 602 interacts with mobile phone 604. Mobile phone 604 includes a virtual assistant that relies on backend functionality provided by a server (not shown) that is communicatively coupled to mobile phone 604. In this example, user 602 is a parent who is putting a baby to bed in a dark room. User 602 whispers into the microphone of mobile phone 604, "What's the weather like tomorrow?" The virtual assistant processes user 602's request and generates a response. In addition, the virtual assistant selects a volume level for the response. The selected volume level corresponds to the full volume of the mobile phone. Figure 6B , mobile phone 604 plays back the virtual assistant's response at the selected full volume: "Tomorrow will be sunny and 65 degrees." Given the context (i.e., putting a baby to sleep), user 602 finds the selected volume too loud. Figure 6C , after hearing the virtual assistant's response, user 602 uses the physical volume adjustment control on mobile phone 604 to reduce the main output volume of mobile phone 604. Based on user 602 adjusting the main output volume of mobile phone 604, the virtual assistant calibrates the volume selection model. Specifically, the virtual assistant calibrates the volume selection model so that in future similar situations (e.g., a dark room and a user whispering), the volume selection model will select a smaller volume.
[0090] like Fig.6D As shown, user 602 then increases the main output volume of mobile phone 604. For example, user 602 may increase the main output volume of mobile phone 604 after leaving the baby's room. Later, user 604 returns to the baby's room, for example, to get a bottle of milk. Fig. 6E In Figure 6, user 602 whispers another request to mobile phone 604: "Remind me to take out the trash at 8 a.m." User 602 neglects to reduce the master output volume of mobile phone 604. If mobile phone 604 plays back the response at the same volume as before, the response will again be too loud. Instead, based on the darkness of the room and the user whispering, the calibrated volume selection model now selects a lower volume level. Fig. 6F , even though the main output volume of mobile phone 604 is high, mobile phone 604 plays back the response at a relatively low volume: "Your reminder has been set." User 602 finds the volume of this subsequent response acceptable and does not adjust the main output volume of mobile phone 604.
[0091] 5. Miscellaneous; Extensions
[0092] Embodiments are directed to a system having one or more devices including a hardware processor and configured to perform any of the operations described herein and / or recited in the following claims.
[0093] In an embodiment, a non-transitory computer-readable storage medium includes instructions that, when executed by one or more hardware processors, cause performance of any of the operations described herein and / or recited in the claims.
[0094] Any combination of the features and functions described herein may be used according to one or more embodiments. In the foregoing description, embodiments have been described with reference to many specific details, which may vary depending on the implementation. Therefore, the description and drawings are to be regarded as illustrative rather than restrictive. The scope of the invention and what the applicant intends to be the sole and exclusive indicator of the scope of the invention is the written and equivalent scope of the set of claims issuing from this application, in the specific form in which such claims issue, including any subsequent corrections.
[0095] 6. Hardware Overview
[0096] According to one embodiment, the techniques described herein are implemented by one or more special-purpose computing devices (i.e., computing devices that are specifically configured to perform specific functions). The special-purpose computing devices may be hardwired to perform these techniques, or may include digital electronic devices (such as one or more application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or network processing units (NPUs) that are permanently programmed to perform these techniques), or may include one or more general-purpose hardware processors that are programmed to perform these techniques according to program instructions in firmware, memory, other storage devices, or a combination thereof. Such special-purpose computing devices may also combine customized hard-wired logic, application-specific integrated circuits (ASICs), FPGAs, or NPUs with customized programming to implement these techniques. The special-purpose computing device may be a desktop computer system, a portable computer system, a handheld device, a network device, or any other device that combines hard-wiring and / or program logic to implement these techniques.
[0097] For example, Figure 7 700 is a block diagram illustrating a computer system 700 upon which embodiments of the present invention may be implemented. Computer system 700 includes a bus 702 or other communication mechanism for communicating information, and a hardware processor 704 coupled to bus 702 for processing information. Hardware processor 704 may be, for example, a general purpose microprocessor.
[0098] The computer system 700 also includes a main memory 706, such as a random access memory (RAM) or other dynamic storage device, coupled to the bus 702 for storing information and instructions to be executed by the processor 704. The main memory 706 may also be used for storing temporary variables or other intermediate information during the execution of instructions to be executed by the processor 704. These instructions, when stored in a non-transitory storage medium accessible to the processor 704, cause the computer system 700 to appear as a special-purpose machine customized to perform the operations specified in the instructions.
[0099] Computer system 700 also includes a read only memory (ROM) 708 or other static storage device coupled to bus 702 for storing static information and instructions for processor 704. A storage device 710, such as a magnetic or optical disk, is provided and coupled to bus 702 for storing information and instructions.
[0100] The computer system 700 may be coupled to a display 712 via the bus 702, such as a liquid crystal display (LCD), a plasma display, an electronic ink display, a cathode ray tube (CRT) monitor, or any other type of device for displaying information to a computer user. An input device 714 including alphanumeric keys and other keys may be coupled to the bus 702 for communicating information and command selections to the processor 704. Alternatively or additionally, the computer system 700 may receive user input via a cursor control 716 (such as a mouse, trackball, trackpad, touch screen, or cursor direction keys) for communicating direction information and command selections to the processor 704 and for controlling cursor movement on the display 712. The input device typically has two degrees of freedom in two axes [a first axis (e.g., x) and a second axis (e.g., y)], which allows the device to specify a position in a plane. The display 712 may be configured to receive user input via one or more pressure-sensitive sensors, multi-touch sensors, and / or gesture sensors. Alternatively or additionally, computer system 700 may receive user input via a microphone, a video camera, and / or some other kind of user input device (not shown).
[0101] The computer system 700 may implement the techniques described herein using custom hardwired logic, one or more ASICs or FPGAs, firmware, and / or program logic, all of which, in combination with the computer system, enable the computer system 700 to become or be programmed as a special purpose machine. According to one embodiment, the techniques herein are performed by the computer system 700 in response to the processor 704 executing one or more sequences of one or more instructions contained in the main memory 706. Such instructions may be read into the main memory 706 from another storage medium such as the storage device 710. Execution of the sequences of instructions contained in the main memory 706 causes the processor 704 to perform the processing steps described herein. In alternative embodiments, hardwired circuits may be used in place of or in combination with software instructions.
[0102] As used herein, the term "storage medium" refers to any non-temporary medium that stores data and / or instructions that cause a machine to operate in a particular manner. Such storage media may include non-volatile media and / or volatile media. Non-volatile media include, for example, optical or magnetic disks, such as storage device 710. Volatile media include dynamic memory, such as main memory 706. Common forms of storage media include, for example, floppy disks, flexible disks, hard disks, solid-state drives, tapes or any other magnetic data storage media, CD-ROMs, any other optical data storage media, any physical medium with a hole pattern, RAM, programmable read-only memory (PROM) and erasable PROM (EPROM), flash EPROM (FLASH-EPROM), non-volatile random access memory (NVRAM), any other memory chip or cartridge memory, content addressable memory (CAM) and ternary content addressable memory (TCAM).
[0103] Storage media are distinct from, but may be used in conjunction with, transmission media. Transmission media participate in the transfer of information between storage media. For example, transmission media include coaxial cables, copper wire, and optical fiber, including the wires that comprise bus 702. Transmission media may also take the form of acoustic or light waves, such as those generated during radio wave and infrared data communications.
[0104] Various forms of media may be involved in carrying one or more sequences of one or more instructions to the processor 704 for execution. For example, the instructions may initially be carried on a disk or solid-state drive of a remote computer. The remote computer may load the instructions into its dynamic memory and send the instructions over the network via a network interface controller (NIC), such as an Ethernet controller or a wireless network controller. The NIC local to the computer system 700 may receive data from the network and place the data on the bus 702. The bus 702 carries the data to the main memory 706, from which the processor 704 retrieves and executes the instructions. The instructions received by the main memory 706 may optionally be stored on the storage device 710 before or after execution by the processor 704.
[0105] The computer system 700 also includes a communication interface 718 coupled to the bus 702. The communication interface 718 provides a two-way data communication coupled to a network link 720, which is connected to a local network 722. For example, the communication interface 718 can be an integrated services digital network (ISDN) card, a cable modem, a satellite modem, or a modem that provides a data communication connection to a corresponding type of telephone line. As another example, the communication interface 718 can be a local area network (LAN) card to provide a data communication connection to a compatible LAN. A wireless link can also be implemented. In any such implementation, the communication interface 718 sends and receives electrical signals, electromagnetic signals, or optical signals that carry digital data streams representing various types of information.
[0106] The network link 720 typically provides data communication to other data devices through one or more networks. For example, the network link 720 can provide a connection to a host computer 724 or a data device operated by an Internet Service Provider (ISP) 726 through a local network 722. The ISP 726 in turn provides data communication services through a global packet data communication network now commonly referred to as the "Internet" 728. Both the local network 722 and the Internet 728 use electrical, electromagnetic, or optical signals that carry digital data streams. The signals through the various networks and the signals on the network link 720 and through the communication interface 718 are example forms of transmission media, where the communication interface 718 carries the digital data to and from the computer system 700.
[0107] Computer system 700 can send messages and receive data, including program code, through the network, network link 720 and communication interface 718. In the Internet example, server 730 can send a request code for an application program through Internet 728, ISP 726, local network 722 and communication interface 718.
[0108] The received code may be executed by processor 704 as it is received, and / or stored in storage device 710 or other non-volatile storage for later execution.
[0109] 7. Computer Networks and Cloud Networks
[0110] In one or more embodiments, a computer network provides connections between a set of nodes running software utilizing the techniques described herein. The nodes may be local and / or remote from one another. The nodes are connected via a set of links. Examples of links include coaxial cables, unshielded twisted cables, copper cables, optical fibers, and virtual links.
[0111] A subset of nodes implements a computer network. Examples of such nodes include switches, routers, firewalls, and network address translators (NATs). Another subset of nodes uses a computer network. Such nodes (also referred to as "hosts") can execute client processes and / or server processes. Client processes make requests for computing services (e.g., execution of a particular application and / or storage of a particular amount of data). Server processes respond by performing the requested service and / or returning corresponding data.
[0112] A computer network may be a physical network, comprising physical nodes connected by physical links. A physical node is any digital device. A physical node may be a function-specific hardware device, such as a hardware switch, a hardware router, a hardware firewall, and a hardware NAT. Additionally or alternatively, a physical node may be any physical resource that provides computing power to perform a task, such as a physical resource configured to execute various virtual machines and / or applications that perform corresponding functions. A physical link is a physical medium that connects two or more physical nodes. Examples of links include coaxial cables, unshielded twisted cables, copper cables, and optical fibers.
[0113] A computer network may be an overlay network. An overlay network is a logical network implemented on top of another network (such as a physical network). Each node in the overlay network corresponds to a corresponding node in the underlying network. Therefore, each node in the overlay network is associated with both an overlay address (to address the overlay node) and an underlying address (to address the underlying node that implements the overlay node). Overlay nodes may be digital devices and / or software processes (such as virtual machines, application instances, or threads). The links connecting overlay nodes are implemented as tunnels through the underlying network. The overlay nodes at both ends of the tunnel treat the underlying multi-hop path between them as a single logical link. Tunneling is performed by encapsulation and decapsulation.
[0114] In an embodiment, the client can be located locally and / or remote from the computer network. The client can access the computer network through other computer networks such as a private network or the Internet. The client can use a communication protocol such as a hypertext transfer protocol (HTTP) to transmit the request to the computer network. These requests are communicated through interfaces such as a client interface (such as a web browser), a program interface, or an application programming interface (API).
[0115] In an embodiment, a computer network provides a connection between a client and network resources. Network resources include hardware and / or software configured to execute a server process. Examples of network resources include processors, data storage devices, virtual machines, containers, and / or software applications. Network resources are shared between multiple clients. Clients request computing services from a computer network independently of each other. Network resources are dynamically allocated to requests and / or clients as needed. The network resources allocated to each request and / or client can be scaled up or down based on, for example, (a) computing services requested by a specific client, (b) aggregate computing services requested by a specific tenant, and / or (c) the requested aggregate computing services of the computer network. Such a computer network may be referred to as a "cloud network."
[0116] In an embodiment, a service provider provides a cloud network to one or more end users. The cloud network can implement various service models, including but not limited to software as a service (SaaS), platform as a service (PaaS), and infrastructure as a service (IaaS). In SaaS, the service provider provides the end user with the ability to use the service provider's applications, which are executed on network resources. In PaaS, the service provider provides the end user with the ability to deploy customized applications on network resources. Customized applications can be created using programming languages, libraries, services, and tools supported by the service provider. In IaaS, the service provider provides the end user with the ability to supply processing, storage, network, and other basic computing resources provided by network resources. Any application, including an operating system, can be deployed on network resources.
[0117] In an embodiment, various deployment models can be implemented by a computer network, including but not limited to private cloud, public cloud and hybrid cloud. In a private cloud, network resources are provided to a specific group of one or more entities for exclusive use (the term "entity" used here refers to a company, organization, individual or other entity). Network resources can be local and / or remote to a specific group of entities. In a public cloud, cloud resources are provided for multiple entities (also referred to as "tenants" or "customers") that are independent of each other. A computer network and its network resources are accessed by clients corresponding to different tenants. Such a computer network may be referred to as a "multi-tenant computer network". Several tenants may use the same specific network resources at different times and / or at the same time. Network resources may be local and / or remote to a tenant's location. In a hybrid cloud, a computer network includes a private cloud and a public cloud. The interface between the private cloud and the public cloud allows portability of data and applications. Data stored in a private cloud and data stored in a public cloud can be exchanged through an interface. Applications implemented at a private cloud and applications implemented at a public cloud may be interdependent. Calls from applications at a private cloud to applications at a public cloud (and vice versa) can be performed through an interface.
[0118] In an embodiment, the tenants of a multi-tenant computer network are independent of each other. For example, one tenant may be separated from another tenant (by operation, tenant-specific practices, employees, and / or identification to the outside world). Different tenants may place different network requirements on the computer network. Examples of network requirements include processing speed, data storage capacity, security requirements, performance requirements, throughput requirements, latency requirements, elasticity requirements, quality of service (QoS) requirements, tenant isolation, and / or consistency. The same computer network may need to implement different network requirements required by different tenants.
[0119] In one or more embodiments, in a multi-tenant computer network, tenant isolation is implemented to ensure that applications and / or data of different tenants are not shared with each other. Various tenant isolation methods can be used.
[0120] In an embodiment, each tenant is associated with a tenant ID. Each network resource of the multi-tenant computer network is marked with a tenant ID. Only when the tenant and the specific network resource are associated with the same tenant ID, the tenant is allowed to access the specific network resource.
[0121] In an embodiment, each tenant is associated with a tenant ID. Each application implemented by the computer network is tagged with the tenant ID. Additionally or alternatively, each data structure and / or data set stored by the computer network is tagged with the tenant ID. A tenant is allowed to access a specific application, data structure, and / or data set only if the tenant and the specific application, data structure, and / or data set are associated with the same tenant ID.
[0122] For example, each database implemented by a multi-tenant computer network can be marked with a tenant ID. Only the tenant associated with the corresponding tenant ID can access the data of a particular database. As another example, each entry in a database implemented by a multi-tenant computer network can be marked with a tenant ID. Only the tenant associated with the corresponding tenant ID can access the data of a particular entry. However, a database can be shared by multiple tenants.
[0123] In an embodiment, the subscription list indicates which tenants have access to which applications. For each application, a list of tenant IDs of tenants authorized to access the application is stored. Only when the tenant ID of a tenant is included in the subscription list corresponding to a specific application, the tenant is allowed to access the specific application.
[0124] In an embodiment, network resources corresponding to different tenants (such as digital devices, virtual machines, application instances, and threads) are isolated to tenant-specific overlay networks maintained by a multi-tenant computer network. As an example, data packets from any source device in a tenant overlay network can only be transmitted to other devices in the same tenant overlay network. The encapsulation tunnel is used to prohibit any transmission from a source device on a tenant overlay network to devices in other tenant overlay networks. Specifically, a data packet received from a source device is encapsulated in an outer data packet. The outer data packet is transmitted from a first encapsulation tunnel endpoint (communicating with a source device in a tenant overlay network) to a second encapsulation tunnel endpoint (communicating with a destination device in a tenant overlay network). The second encapsulation tunnel endpoint decapsulates the outer data packet to obtain the original data packet transmitted by the source device. The original data packet is transmitted from the second encapsulation tunnel endpoint to a destination device in the same specific overlay network.
[0125] 8. Microservice Applications
[0126] According to one or more embodiments, the technology described herein is implemented in a microservices architecture. Microservices herein refer to software logic designed to be independently deployable, whose endpoints can be logically coupled to other microservices to build various applications. Applications built using microservices are different from monolithic applications, which are designed as a single fixed unit and typically contain a single logical executable file. Using microservices applications, different microservices can be independently deployed as separate executable files. Microservices can communicate via API endpoints using Hypertext Transfer Protocol (HTTP) messages and / or according to other communication protocols. Microservices can be managed and updated separately, are written in different languages, and execute independently of other microservices.
[0127] Microservices provide flexibility for managing and building applications. Different applications can be built by connecting different sets of microservices without changing the source code of the microservices. Therefore, microservices act as logical building blocks that can be arranged in various ways to build different applications. Microservices can provide monitoring services, and when a trigger event in the trigger event set exposed to the microservice manager occurs, the monitoring service notifies the microservice manager (such as "If-This-Then-That (IFTTT)", Zapier or Oracle Self-Service Automation (OSSA)). Microservices exposed to applications can alternatively or additionally provide action services, which perform actions in applications based on data received from the microservice manager (controllable and configurable via the microservice manager by passing in values, connecting actions to other triggers in the microservice manager and / or data from other actions). Microservice triggers and / or actions can be chained together to form recipes for actions that occur in optional different applications, otherwise these different applications do not know each other or have no control or dependence on each other. These managed applications can, for example, be authenticated or plugged into the microservice manager using application credentials that a user supplies to the manager, without requiring re-authentication each time the managed application is used alone or in combination with other applications.
[0128] In one or more embodiments, microservices can be connected through a GUI. For example, microservices can be displayed as logical blocks within a window, frame, or other element of a GUI. A user can drag and drop a microservice into a GUI area for building an application. A user can connect the output of one microservice to the input of another microservice using a directional arrow or any other GUI element. The application builder can run verification tests to confirm that the output and input are compatible (e.g., by checking data types, size limits, etc.).
[0129] trigger
[0130] According to one or more embodiments, the above techniques may be encapsulated into a microservice. In other words, a microservice may trigger a notification based on the above techniques (into a microservice manager for optional use by other inserted applications (herein referred to as "target" microservices)) and / or may be represented as a GUI block and connected to one or more other microservices. The triggering condition may include an absolute or relative threshold for a value, and / or an absolute or relative threshold for the amount or duration of data to be analyzed, so that whenever an inserted microservice application detects that a threshold has been crossed, a trigger to the microservice manager occurs. For example, a user may request a trigger from the microservice manager when a microservice application detects that a value has crossed a trigger threshold.
[0131] In one embodiment, the trigger, when satisfied, may output data for consumption by the target microservice. In another embodiment, the trigger, when satisfied, outputs a binary value indicating that the trigger has been satisfied, or outputs the field name or other contextual information that the trigger condition is satisfied. Additionally or alternatively, the target microservice may be connected to one or more other microservices so that the alert is input to the other microservices. The other microservices may perform response actions based on the above techniques, including but not limited to deploying additional resources, adjusting system configuration, and / or generating a GUI.
[0132] action
[0133] In one or more embodiments, the inserted microservice application can expose an action to the microservice manager. The exposed action can receive the identification of the data or data object or the location of the data as input, which causes the data to be moved to the data cloud.
[0134] In one or more embodiments, the exposed action may receive as input a request to increase or decrease an existing alert threshold. The input may identify an existing in-application alert threshold, and whether to increase, decrease, or delete the threshold. Additionally or alternatively, the input may request the microservice application to create a new in-application alert threshold. The in-application alert may trigger an alert to the user upon logging into the application, or may trigger an alert to the user using a default or user-selected alert mechanism available within the microservice application itself, rather than through other applications plugged into the microservice manager.
[0135] In one or more embodiments, the microservice application can generate and provide output based on inputs that identify, locate, or provide historical data and define the scope or extent of the requested output. The action, when triggered, causes the microservice application to provide, store, or display the output, for example, as a data model or aggregate data describing the data model.
[0136] In the foregoing specification, embodiments of the present invention have been described with reference to numerous specific details, which may vary depending on implementation. Accordingly, the specification and drawings are to be regarded as illustrative rather than restrictive. The scope of the invention, and what the applicants intend to be the sole and exclusive indicator of the scope of the invention, is the written and equivalent range of the set of claims issuing from this application, in the specific form in which such claims issue, including any subsequent corrections.
[0137] Embodiment 1 is one or more non-transitory computer-readable media including instructions that, when executed by one or more hardware processors, cause execution of operations including:
[0138] receiving a first audio input including a first request;
[0139] analyzing the first audio input to determine one or more sound characteristics corresponding to the first audio input;
[0140] applying the one or more sound characteristics corresponding to the first audio input to a volume selection model to calculate a first volume level;
[0141] playing a first audio response corresponding to the first request at the first volume level;
[0142] receiving a first user input to modify an output volume from the first volume level to a second volume level after playing the first audio response at the first volume level;
[0143] calibrating the volume selection model based on the first user input to obtain an updated volume selection model;
[0144] receiving a second audio input including a second request;
[0145] analyzing the second audio input to determine one or more sound characteristics corresponding to the second audio input, wherein the one or more sound characteristics corresponding to the second audio input are substantially similar to the one or more sound characteristics corresponding to the first audio input;
[0146] applying the one or more sound characteristics corresponding to the second audio input to the updated volume selection model to calculate a third volume level substantially similar to the second volume level; and
[0147] A second audio response corresponding to the second request is played at the third volume level via the audio device.
[0148] Embodiment 2 includes one or more media of embodiment 1, wherein the operations further include:
[0149] detecting, after the second audio response, the elapse of a threshold time period without receiving any user input modifying the output volume; and
[0150] Based on detecting the lapse of the threshold time period without receiving any user input that modifies the output volume: in the volume selection model, confirming that the third volume level is correct for responding to an audio input having one or more sound characteristics that are substantially similar to the one or more sound characteristics corresponding to the second audio input.
[0151] Embodiment 3 includes one or more media as described in embodiment 1,
[0152] wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input comprises determining that the first audio input comprises speech of a first user among a plurality of users of the audio device, and
[0153] Wherein, calibrating the volume selection model is performed for a first user among the plurality of users of the audio device but not for a second user.
[0154] Embodiment 4 includes the one or more media of embodiment 1, wherein the operations further include:
[0155] receiving a second user input requesting to repeat the second audio response after playing the second audio response at the third volume level;
[0156] further calibrating the volume selection model based on the second user input; and
[0157] The second audio response is repeated at a fourth volume level that is higher than the third volume level.
[0158] Embodiment 5 includes the one or more media of embodiment 1, wherein the operations further include:
[0159] The volume selection model is generated by at least performing supervised learning based on training data including a plurality of pre-labeled audio inputs.
[0160] Embodiment 6 includes the one or more media of embodiment 1, wherein the operations further include:
[0161] The volume selection model is trained by at least the following means:
[0162] prompting a user of the audio device to provide a series of audio inputs; and
[0163] The volume selection model is calibrated based on the series of audio inputs.
[0164] Embodiment 7 includes the one or more media of embodiment 1, wherein the operations further include:
[0165] transmitting calibration data associated with the volume selection model to a server; and
[0166] At the server, the calibration data is incorporated into a baseline volume selection model assigned to one or more other audio devices.
[0167] Embodiment 8 includes one or more of the media of Embodiment 1, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input includes determining loudness of speech in the first audio input.
[0168] Embodiment 9 includes one or more of the media of Embodiment 1, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input includes estimating a distance of a user of the audio device from the audio device.
[0169] Embodiment 10 includes one or more of the media of Embodiment 1, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input includes determining an ambient volume level.
[0170] Embodiment 11 includes one or more of the media of Embodiment 1, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input includes determining that the audio device is a particular category of audio device.
[0171] Embodiment 12 includes one or more of the media of Embodiment 1, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input includes calculating a signal-to-noise ratio in the first audio input.
[0172] Embodiment 13 includes one or more media as described in Embodiment 1, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input includes determining that the first audio input is for a particular virtual assistant role among a plurality of virtual assistant roles associated with the audio device.
[0173] Embodiment 14 includes one or more of the media of Embodiment 1, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input includes determining that a user of the first audio device is hearing impaired.
[0174] Embodiment 15 includes one or more media of embodiment 1, wherein the operations further include:
[0175] The third volume level is adjusted based on one or more non-sound characteristics associated with the second audio input.
[0176] Embodiment 16 includes one or more media of Embodiment 15, wherein the one or more non-sound characteristics include a time of day of the second audio input.
[0177] Embodiment 17 includes the one or more media of Embodiment 15, wherein the one or more non-sound characteristics include ambient light levels.
[0178] Embodiment 18 includes one or more media of embodiment 1, wherein the operations further include:
[0179] generating the volume selection model by at least performing supervised learning based on training data comprising a plurality of pre-labeled audio inputs;
[0180] The volume selection model is trained by at least the following means:
[0181] prompting a user of the audio device to provide a series of audio inputs, and
[0182] calibrating the volume selection model based on the series of audio inputs;
[0183] receiving a second user input requesting to repeat the second audio response after playing the second audio response at the third volume level;
[0184] further calibrating the volume selection model based on the second user input;
[0185] repeating the second audio response at a fourth volume level higher than the third volume level;
[0186] transmitting calibration data associated with the volume selection model to a server;
[0187] at the server, incorporating the calibration data into a baseline volume selection model assigned to one or more other audio devices;
[0188] adjusting the third volume level based on one or more non-sound characteristics associated with the second audio input, wherein the one or more non-sound characteristics include a time of day and an ambient light level of the second audio input,
[0189] Wherein, analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input comprises:
[0190] (a) determining that the first audio input includes speech of a first user of a plurality of users of the audio device, wherein calibrating the volume selection model is performed for the first user of the plurality of users of the audio device and not for a second user,
[0191] (b) determining the loudness of speech in the first audio input,
[0192] (c) estimating the distance of a user of the audio device from the audio device,
[0193] (d) determine the ambient sound level,
[0194] (e) determining that the audio device is a specific type of audio device,
[0195] (f) calculating the signal-to-noise ratio in the first audio input
[0196] (g) determining that the first audio input is intended for a particular virtual assistant role among a plurality of virtual assistant roles associated with the audio device, and
[0197] (h) Determining that a user of the first audio device has a hearing impairment.
[0198] Embodiment 19 is one or more non-transitory computer-readable media comprising instructions that, when executed by one or more hardware processors, cause execution of operations comprising:
[0199] receiving an audio input comprising a request, wherein the request does not specify a volume level of a response to the request;
[0200] generating the response to the request;
[0201] applying content from at least one of the request and the response to a volume selection model to determine a response volume;
[0202] configuring an audio device to play the response at the response volume; and
[0203] The response is played via the audio device at the response volume.
[0204] Embodiment 20 is one or more non-transitory computer-readable media comprising instructions that, when executed by one or more hardware processors, cause execution of operations comprising:
[0205] receiving an audio input comprising a request, wherein the request does not specify a volume level of a response to the request;
[0206] analyzing the audio input to determine one or more sound characteristics corresponding to the audio input;
[0207] calculating a volume correction factor based on the one or more sound characteristics;
[0208] multiplying the baseline volume level by the volume correction factor to determine an adjusted volume level;
[0209] configuring an audio device to play the response to the request at the adjusted volume level; and
[0210] The response to the request is played via the audio device at the adjusted volume level.
[0211] Embodiment 21 is one or more non-transitory computer-readable media comprising instructions that, when executed by one or more hardware processors, cause execution of operations comprising:
[0212] receiving audio input including a request;
[0213] determining a response playback device configured to play a response to the request;
[0214] Based on determining the response playback device: selecting a volume level for the response to the request; and
[0215] The response to the request is played at the volume level via the response playback device.
[0216] Embodiment 22 is a method for audio response, the method comprising:
[0217] receiving a first audio input including a first request;
[0218] analyzing the first audio input to determine one or more sound characteristics corresponding to the first audio input;
[0219] applying the one or more sound characteristics corresponding to the first audio input to a volume selection model to calculate a first volume level;
[0220] playing a first audio response corresponding to the first request at the first volume level;
[0221] receiving a first user input to modify an output volume from the first volume level to a second volume level after playing the first audio response at the first volume level;
[0222] calibrating the volume selection model based on the first user input to obtain an updated volume selection model;
[0223] receiving a second audio input including a second request;
[0224] analyzing the second audio input to determine one or more sound characteristics corresponding to the second audio input, wherein the one or more sound characteristics corresponding to the second audio input are substantially similar to the one or more sound characteristics corresponding to the first audio input;
[0225] applying the one or more sound characteristics corresponding to the second audio input to the updated volume selection model to calculate a third volume level substantially similar to the second volume level; and
[0226] playing, via the audio device, a second audio response corresponding to the second request at the third volume level,
[0227] The method is performed by at least one device including a hardware processor.
[0228] Embodiment 23 includes the method of embodiment 22, further comprising:
[0229] detecting, after the second audio response, the elapse of a threshold time period without receiving any user input modifying the output volume; and
[0230] Based on detecting the lapse of the threshold time period without receiving any user input that modifies the output volume: in the volume selection model, confirming that the third volume level is correct for responding to an audio input having one or more sound characteristics that are substantially similar to the one or more sound characteristics corresponding to the second audio input.
[0231] Embodiment 24 includes the method of embodiment 22,
[0232] wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input comprises determining that the first audio input comprises speech of a first user among a plurality of users of the audio device, and
[0233] Wherein, calibrating the volume selection model is performed for a first user among the plurality of users of the audio device but not for a second user.
[0234] Embodiment 25 includes the method of embodiment 22, further comprising:
[0235] receiving a second user input requesting to repeat the second audio response after playing the second audio response at the third volume level;
[0236] further calibrating the volume selection model based on the second user input; and
[0237] The second audio response is repeated at a fourth volume level that is higher than the third volume level.
[0238] Embodiment 26 includes the method of embodiment 22, further comprising:
[0239] The volume selection model is generated by at least performing supervised learning based on training data including a plurality of pre-labeled audio inputs.
[0240] Embodiment 27 includes the method of embodiment 22, further comprising:
[0241] The volume selection model is trained by at least the following means:
[0242] prompting a user of the audio device to provide a series of audio inputs; and
[0243] The volume selection model is calibrated based on the series of audio inputs.
[0244] Embodiment 28 includes the method of embodiment 22, further comprising:
[0245] transmitting calibration data associated with the volume selection model to a server; and
[0246] At the server, the calibration data is incorporated into a baseline volume selection model assigned to one or more other audio devices.
[0247] Embodiment 29 includes the method of Embodiment 22, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input comprises determining the loudness of speech in the first audio input.
[0248] Embodiment 30 includes the method of Embodiment 22, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input comprises estimating a distance of a user of the audio device from the audio device.
[0249] Embodiment 31 includes the method of Embodiment 22, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input includes determining an ambient volume level.
[0250] Embodiment 32 includes the method of Embodiment 22, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input includes determining that the audio device is a particular category of audio device.
[0251] Embodiment 33 includes the method of Embodiment 22, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input comprises calculating a signal-to-noise ratio in the first audio input.
[0252] Embodiment 34 includes the method described in Embodiment 22, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input includes determining that the first audio input is for a particular virtual assistant role among a plurality of virtual assistant roles associated with the audio device.
[0253] Embodiment 35 includes the method of Embodiment 22, wherein analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input includes determining that a user of the first audio device is hearing impaired.
[0254] Embodiment 36 includes the method of embodiment 22, wherein the operation further comprises:
[0255] The third volume level is adjusted based on one or more non-sound characteristics associated with the second audio input.
[0256] Embodiment 37 includes the method of Embodiment 22, wherein the one or more non-sound characteristics include a time of day of the second audio input.
[0257] Embodiment 38 includes the method of Embodiment 22, wherein the one or more non-sound characteristics include ambient light levels.
[0258] Embodiment 39 includes the method of embodiment 22, further comprising:
[0259] generating the volume selection model by at least performing supervised learning based on training data comprising a plurality of pre-labeled audio inputs;
[0260] The volume selection model is trained by at least the following means:
[0261] prompting a user of the audio device to provide a series of audio inputs, and
[0262] calibrating the volume selection model based on the series of audio inputs;
[0263] receiving a second user input requesting to repeat the second audio response after playing the second audio response at the third volume level;
[0264] further calibrating the volume selection model based on the second user input;
[0265] repeating the second audio response at a fourth volume level higher than the third volume level;
[0266] transmitting calibration data associated with the volume selection model to a server;
[0267] at the server, incorporating the calibration data into a baseline volume selection model assigned to one or more other audio devices;
[0268] adjusting the third volume level based on one or more non-sound characteristics associated with the second audio input, wherein the one or more non-sound characteristics include a time of day and an ambient light level of the second audio input,
[0269] Wherein, analyzing the first audio input to determine the one or more sound characteristics corresponding to the first audio input comprises:
[0270] (a) determining that the first audio input includes speech of a first user of a plurality of users of the audio device, wherein calibrating the volume selection model is performed for the first user of the plurality of users of the audio device and not for a second user,
[0271] (b) determining the loudness of speech in the first audio input,
[0272] (c) estimating the distance of a user of the audio device from the audio device,
[0273] (d) determine the ambient sound level,
[0274] (e) determining that the audio device is a specific type of audio device,
[0275] (f) calculating the signal-to-noise ratio in the first audio input
[0276] (g) determining that the first audio input is intended for a particular virtual assistant role among a plurality of virtual assistant roles associated with the audio device, and
[0277] (h) Determining that a user of the first audio device has a hearing impairment.
[0278] Embodiment 40 is a method for audio response, the method comprising:
[0279] receiving an audio input comprising a request, wherein the request does not specify a volume level of a response to the request;
[0280] generating the response to the request;
[0281] applying content from at least one of the request and the response to a volume selection model to determine a response volume;
[0282] configuring an audio device to play the response at the response volume; and
[0283] playing the response at the response volume via the audio device,
[0284] The method is performed by at least one device including a hardware processor.
[0285] Embodiment 41 is a method for audio response, the method comprising:
[0286] receiving an audio input comprising a request, wherein the request does not specify a volume level of a response to the request;
[0287] analyzing the audio input to determine one or more sound characteristics corresponding to the audio input;
[0288] calculating a volume correction factor based on the one or more sound characteristics;
[0289] multiplying the baseline volume level by the volume correction factor to determine an adjusted volume level;
[0290] configuring an audio device to play the response to the request at the adjusted volume level; and
[0291] playing the response to the request at the adjusted volume level via the audio device,
[0292] The method is performed by at least one device including a hardware processor.
[0293] Embodiment 42 is a method for audio response, the method comprising:
[0294] receiving audio input including a request;
[0295] determining a response playback device configured to play a response to the request;
[0296] Based on determining the response playback device: selecting a volume level for the response to the request; and
[0297] playing, via the response playback device, the response to the request at the volume level,
[0298] The method is performed by at least one device including a hardware processor.
[0299] Embodiment 43 is a system for audio response, the system comprising:
[0300] one or more processors;
[0301] A memory coupled to the one or more processors, having instructions stored thereon, which, when executed by the one or more processors, cause the one or more processors to perform a method as described in any one of Examples 22-42.
[0302] Embodiment 44 is an apparatus for audio response, the apparatus comprising means for performing the method as described in any one of embodiments 22-42.
Claims
1. One or more non-transitory machine-readable media storing instructions that, when executed by one or more processors, cause execution of operations including: receiving audio input including a request; receiving location information identifying a location of a first device, the first device being configured to respond to the received request; calculating a first volume adjustment factor based on the received position information; applying a machine learning algorithm to calculate a new volume level for playing a response corresponding to the request based at least in part on the current volume level and the first volume adjustment factor; as well as The response corresponding to the request is played, via the first device, at the calculated new volume level.
2. The one or more media of claim 1, wherein receiving the audio input is performed by a second device different from the first device, and wherein the operations further comprise: Based on the location of the second device, a first device is selected from among the plurality of devices for playing the response.
3. The one or more media of claim 1, wherein receiving the audio input is performed by a second device different from the first device, and wherein the operations further comprise: receiving location information associated with a second device; determining a location of the user based on location information associated with the second device; Based on the location of the user, a first device is selected from a plurality of devices for playing the response.
4. The one or more media of claim 1, wherein the operations further comprise: associating the location information with a plurality of known locations, The calculation of the first volume adjustment factor includes: determining a particular location among the plurality of known locations associated with the location information; and A first volume adjustment factor is determined based at least in part on the particular location.
5. The one or more media of claim 4, wherein calculating a first volume adjustment factor further comprises determining a location category corresponding to the particular location, and wherein the first volume adjustment factor is calculated based at least in part on the location category.
6. The one or more media of claim 1, wherein the operations further comprise: analyzing the audio input to determine one or more acoustic characteristics of the audio input; as well as calculating a second volume adjustment factor based on the one or more sound characteristics of the audio input; The machine learning algorithm calculates the new volume level based on at least the current volume, a first volume adjustment factor, and a second volume adjustment factor.
7. The one or more media of claim 1, the operations further comprising: measuring an ambient light level at the first device; as well as calculating a second volume adjustment factor based on the measured ambient light level; The machine learning algorithm calculates the new volume level based on at least the current volume, a first volume adjustment factor, and a second volume adjustment factor.
8. The one or more media of claim 1, the operations further comprising: determining a time of day at which the audio input was received; as well as calculating a second volume adjustment factor based on the time of day when the audio input is received; The machine learning algorithm calculates the new volume level based on at least the current volume, a first volume adjustment factor, and a second volume adjustment factor.
9. A method comprising: obtaining training data that maps volume selections to features of an audio input; training a machine learning model to determine a volume level for responding to a request based on the training data; receiving audio input including a request; receiving location information identifying a location of a first device, the first device being configured to respond to the request; applying the trained machine learning model to calculate a volume level for playing a response corresponding to the request based at least in part on characteristics corresponding to the request, the characteristics including a location of the first device; as well as playing, via the first device, the response corresponding to the request at the calculated volume level, The method is executed by a hardware processor.
10. The method of claim 9, wherein receiving the audio input is performed by a second device different from the first device, and wherein the operations further comprise: Based on the location of the second device, a first device is selected from among the plurality of devices for playing the response. The method of claim 10 , wherein the first device is located near the second device.
12. The method according to claim 9, further comprising: associating the location information with a plurality of known locations, Wherein applying the trained machine learning model comprises: determining a specific location among the plurality of known locations associated with the location information; determining a first volume adjustment factor based at least in part on the particular location; and The volume level is calculated based on the determined first volume adjustment factor.
13. The method of claim 12, wherein calculating a first volume adjustment factor further comprises determining a location category corresponding to the particular location, and wherein the first volume adjustment factor is calculated based at least in part on the location category.
14. The method of claim 9, wherein the operations further comprise: analyzing the audio input to determine one or more acoustic characteristics of the audio input; and Wherein applying the trained machine learning model comprises: determining a second volume adjustment factor based on the one or more sound characteristics of the audio input; and The volume level is calculated based on the determined second volume adjustment factor.
15. A system comprising: at least one device, the at least one device comprising a hardware processor; The system is configured to perform operations including: receiving audio input including a request; receiving location information identifying a location of a first device, the first device being configured to respond to the received request; calculating a first volume adjustment factor based on the received position information; applying a machine learning algorithm to calculate a new volume level for playing a response corresponding to the request based at least in part on the current volume level and the first volume adjustment factor; as well as The response corresponding to the request is played, via the first device, at the calculated new volume level.
16. The system of claim 15, wherein the operations further comprise: associating the location information with a plurality of known locations, The calculation of the first volume adjustment factor includes: determining a particular location among the plurality of known locations associated with the location information; and A first volume adjustment factor is determined based at least in part on the particular location.
17. The system of claim 16, wherein calculating a first volume adjustment factor further comprises determining a location category corresponding to the particular location, and wherein the first volume adjustment factor is calculated based at least in part on the location category.
18. The system of claim 15, wherein receiving the audio input is performed by a second device different from the first device, and wherein the operations further comprise: Based on the location of the second device, a first device is selected from among the plurality of devices for playing the response.
19. The system of claim 15, the operations further comprising: measuring an ambient light level at the first device; as well as calculating a second volume adjustment factor based on the measured ambient light level; The machine learning algorithm calculates the new volume level based on at least the current volume, a first volume adjustment factor, and a second volume adjustment factor.
20. The system of claim 15, the operations further comprising: determining a time of day at which the audio input was received; as well as calculating a second volume adjustment factor based on the time of day when the audio input is received; The machine learning algorithm calculates the new volume level based on at least the current volume, a first volume adjustment factor, and a second volume adjustment factor.
