A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.chrome.com/docs/extensions/reference/api/audio below:

chrome.audio | API | Chrome for Developers

Skip to main content chrome.audio

Stay organized with collections Save and categorize content based on your preferences.

Important: This API works only on ChromeOS. Description

The chrome.audio API is provided to allow users to get information about and control the audio devices attached to the system. This API is currently only available in kiosk mode for ChromeOS.

Permissions

audio

Availability Types Properties Properties Properties Properties

DeviceType

Available audio device types.

Enum

"HEADPHONE"

"MIC"

"USB"

"BLUETOOTH"

"HDMI"

"INTERNAL_SPEAKER"

"INTERNAL_MIC"

"FRONT_MIC"

"REAR_MIC"

"KEYBOARD_MIC"

"HOTWORD"

"LINEOUT"

"POST_MIX_LOOPBACK"

"POST_DSP_LOOPBACK"

"ALSA_LOOPBACK"

"OTHER"

Properties Properties

StreamType

Type of stream an audio device provides.

Methods

getDevices()

chrome.audio.getDevices(
  filter?: DeviceFilter,
)
: Promise<AudioDeviceInfo[]>

Gets a list of audio devices filtered based on filter.

Parameters

getMute()

chrome.audio.getMute(
  streamType: StreamType,
)
: Promise<boolean>

Gets the system-wide mute state for the specified stream type.

Parameters

setActiveDevices()

chrome.audio.setActiveDevices(
  ids: DeviceIdLists,
)
: Promise<void>

Sets lists of active input and/or output devices.

Parameters

setMute()

chrome.audio.setMute(
  streamType: StreamType,
  isMuted: boolean,
)
: Promise<void>

Sets mute state for a stream type. The mute state will apply to all audio devices with the specified audio stream type.

Parameters

setProperties()

chrome.audio.setProperties(
  id: string,
  properties: DeviceProperties,
)
: Promise<void>

Sets the properties for the input or output device.

Events

onDeviceListChanged

chrome.audio.onDeviceListChanged.addListener(
  callback: function,
)

Fired when audio devices change, either new devices being added, or existing devices being removed.

Parameters

onLevelChanged

chrome.audio.onLevelChanged.addListener(
  callback: function,
)

Fired when sound level changes for an active audio device.

onMuteChanged

chrome.audio.onMuteChanged.addListener(
  callback: function,
)

Fired when the mute state of the audio input or output changes. Note that mute state is system-wide and the new value applies to every audio device with specified stream type.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-11 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-11 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4