Skip to content

'Switch device' Example Appears Outdated - SetDefaultDevice no longer available #106

@EricLBaker

Description

@EricLBaker

Reference from example:

AudioUtilities.SetDefaultDevice(device.id)


Version: (latest) 20240210
Python: 3.10.11
OS: Windows 11


Minimal reproducible example:

from pycaw.pycaw import AudioUtilities

AudioUtilities.SetDefaultDevice("my-device-id")

Results in:

AttributeError: type object 'AudioUtilities' has no attribute 'SetDefaultDevice'

Are there any updates on how to set active audio device by ID?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions