# US 2021/0084432 A1 · Audio Service Design for Operating Systems

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0084432 A1
- Document ID: US20210084432A1
- Status: Published application
- Kind: A1
- Application number: 17/023,081
- Filed: 2020-09-16
- Published: 2021-03-18
- Earliest claimed: 2019-08-12
- Assignees: Facebook Technologies, LLC
- Applicants: Facebook Technologies, LLC
- Inventors: Marc Ihaab Salem; Sumit Kamath
- Web page: https://patentgrep.com/patent/US20210084432A1

## CPC

- G06F 3/165: {Management of the audio stream, e.g. setting of volume, audio stream path}
- H04S 7/305: {Electronic adaptation of stereophonic audio signals to reverberation of the listening space (H04S7/301 takes precedence)}
- G06F 3/167: {Audio in a user interface, e.g. using voice commands for navigating, audio feedback}
- H04R 5/02: Spatial or constructional arrangements of loudspeakers
- H04S 7/301: {Automatic calibration of stereophonic sound system, e.g. with test microphone}
- H04S 7/303: {Tracking of listener position or orientation}
- H04S 2420/01: Enhancing the perception of the sound image or of the spatial distribution using head related transfer functions [HRTF's] or equivalents thereof, e.g. interaural time difference [ITD] or interaural level difference [ILD]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04S: STEREOPHONIC SYSTEMS
- H04R: LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS (producing sounds with frequency not determined by supply frequency G10K)

## Abstract

In one embodiment, an audio service executing on a computing device performs a method including receiving, from one or more applications, a number of world-locked audio objects, where each of the world-locked audio objects is associated with a coordinate within a three-dimensional environment; identifying a first subset of the world-locked audio objects and a second subset of the world-locked audio objects, where the first subset includes a number of world-locked audio objects and the second subset includes one or more of the world-locked audio objects that are excluded from the first subset; generating a spherical harmonic object based on the second subset of world-locked audio objects and their associated coordinates; and sending data associated with the first subset of world-locked audio objects and the spherical harmonic object to an audio driver configured to render audio for simultaneous output.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A method comprising, by a computing device:
allocating an audio buffer for communicating audio data from an audio driver to an audio service;
receiving, by the audio service, one or more registration requests from one or more applications to receive audio data from the audio driver, wherein each registration request specifies a buffer size;
allocating one or more application buffers for the one or more applications, each application buffer being of the buffer size specified in the registration request, the application buffer being configured for communicating audio data from the audio service to the application associated with the registration request;
determining that the audio buffer is filled with incoming audio data from the audio driver; and
providing the incoming audio data to the one or more applications by transferring the incoming audio data from the audio buffer to the one or more application buffers associated with the one or more applications.

### Claim 22 (depends on 21)

The method of claim 21, wherein in response to providing the incoming audio data to the one or more applications, each application processes the audio data to produce a desired audio recording.

### Claim 23 (depends on 21)

The method of claim 21, wherein each application allocates an application buffer of a particular buffer size for audio data recording based at least in part on latency tolerable to the application.

### Claim 24 (depends on 21)

The method of claim 21, wherein the one or more application buffers comprise a first application buffer and a second application buffer, wherein:
the first application buffer is a relatively larger buffer for reduced power consumption; and
the second application buffer is a relatively smaller buffer for lower latency audio processing.

### Claim 25 (depends on 21)

The method of claim 21, wherein the audio buffer comprises one or more frames, and wherein determining that the audio buffer is filled with incoming audio data from the audio driver comprises:
determining that the one or more frames of the audio buffer are filled with the incoming audio data from the audio driver.

### Claim 26 (depends on 25)

The method of claim 25, wherein determining that the one or more frames of the audio buffer are filled with the incoming audio data comprises:
queuing a first frame of the one or more frames of the audio buffer to begin storing the incoming audio data;
receiving a notification that the first frame is filled;
in response to receiving the notification that the first frame is filled, queuing a next frame of the one or more frames to continue storing the incoming audio data; and
repeating the queuing process until the audio data from the incoming audio driver is captured.

### Claim 27 (depends on 26)

The method of claim 26, wherein queuing the next frame occur immediately to prevent audio data loss.

### Claim 28 (depends on 21)

The method of claim 21, wherein the incoming audio data from the audio driver comprises one or more of:
data captured from a speech device;
data captured from a voice over IP (VoIP) device; or
data captured from a general recording device.

### Claim 29 (depends on 28)

The method of claim 28, wherein the one or more applications comprise a first application and a second application, wherein:
the first application processes the data captured from the speech device to determine a voice identifier; and
the second application processes the data captured from the VoIP device to enable voice triggers for a VoIP call by the second application.

### Claim 30 (depends on 21)

The method of claim 21, wherein the audio service comprises an operating system of the computing device.

### Claim 31 (depends on 21)

The method of claim 21, wherein the computing device is an artificial-reality device.

### Claim 32 (depends on 21)

The method of claim 21, wherein the one or more applications and the audio driver are each coupled to a synchronized clock reference.

### Claim 33

One or more computer-readable non-transitory storage media embodying software that is operable when executed by a client device to:
allocate an audio buffer for communicating audio data from an audio driver to an audio service;
receive, by the audio service, one or more registration requests from one or more applications to receive audio data from the audio driver, wherein each registration request specifies a buffer size;
allocate one or more application buffers for the one or more applications, each application buffer being of the buffer size specified in the registration request, the application buffer being configured for communicating audio data from the audio service to the application associated with the registration request;
determine that the audio buffer is filled with incoming audio data from the audio driver; and
provide the incoming audio data to the one or more applications by transferring the incoming audio data from the audio buffer to the one or more application buffers associated with the one or more applications.

### Claim 34 (depends on 33)

The media of claim 33, wherein in response to providing the incoming audio data to the one or more applications, each application processes the audio data to produce a desired audio recording.

### Claim 35 (depends on 33)

The media of claim 33, wherein each application allocates an application buffer of a particular buffer size for audio data recording based at least in part on latency tolerable to the application.

### Claim 36 (depends on 33)

The media of claim 33, wherein the one or more application buffers comprise a first application buffer and a second application buffer, wherein:
the first application buffer is a relatively larger buffer for reduced power consumption; and
the second application buffer is a relatively smaller buffer for lower latency audio processing.

### Claim 37

A client device comprising:
one or more processors; and
one or more computer-readable non-transitory storage media coupled to one or more of the one or more processors and comprising instructions operable when executed by one or more of the one or more processors to cause the client device to:
allocate an audio buffer for communicating audio data from an audio driver to an audio service;
receive, by the audio service, one or more registration requests from one or more applications to receive audio data from the audio driver, wherein each registration request specifies a buffer size;
allocate one or more application buffers for the one or more applications, each application buffer being of the buffer size specified in the registration request, the application buffer being configured for communicating audio data from the audio service to the application associated with the registration request;
determine that the audio buffer is filled with incoming audio data from the audio driver; and
provide the incoming audio data to the one or more applications by transferring the incoming audio data from the audio buffer to the one or more application buffers associated with the one or more applications.

### Claim 38 (depends on 37)

The client device of claim 37, wherein in response to providing the incoming audio data to the one or more applications, each application processes the audio data to produce a desired audio recording.

### Claim 39 (depends on 37)

The client device of claim 37, wherein each application allocates an application buffer of a particular buffer size for audio data recording based at least in part on latency tolerable to the application.

### Claim 40 (depends on 37)

The client device of claim 37, wherein the one or more application buffers comprise a first application buffer and a second application buffer, wherein:
the first application buffer is a relatively larger buffer for reduced power consumption; and
the second application buffer is a relatively smaller buffer for lower latency audio processing.
