Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--alsa-output-device

What does --alsa-output-device do?

The Alsa device to use when opening an audio stream.

Usage

CLILaunch Chrome with --alsa-output-device using CLI

chrome --alsa-output-device

PuppeteerLaunch Chrome with --alsa-output-device using Puppeteer

const browser = await puppeteer.launch({
  args: ['--alsa-output-device']
});

PlaywrightLaunch Chrome with --alsa-output-device using Playwright

const browser = await chromium.launch({
  args: ['--alsa-output-device']
});

SeleniumLaunch Chrome with --alsa-output-device using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--alsa-output-device')

driver = webdriver.Chrome(options=options)

Build Conditions

ENABLE_PASSTHROUGH_AUDIO_CODECSCHROMEOSFUCHSIALINUX || IS_CHROMEOS || BUILDFLAG(IS_FREEBSD) || \