在 Audacity 中处理项目时(working on your projects in Audacity)遇到问题,因为应用程序不断提示“打开声音设备时出错”?您的应用程序可能在使用播放和录音设备时遇到困难,从而导致出现上述错误消息。您可以在电脑上进行一些更改来解决错误。我们将向您展示如何做到这一点。
您收到上述Audacity(Audacity)错误的几个原因是您尚未启用所有声音设备、您的 PC 不允许应用程序访问您的麦克风、您的声音设备驱动程序已过时或有故障、所需的 Windows 服务未(Windows)提供跑步,等等。

启用电脑上的
所有声音(Sound) 设备(Devices)
当您在Audacity(Audacity)中收到“打开声音设备时出错(Error opening sound device)”错误时,请检查并启用 PC 上的所有播放和麦克风设备。这可确保当您在应用程序中处理项目时,应用程序可以访问所需的设备。
- 按Windows + R打开“运行”(Run)对话框。
- 在框中键入以下内容并按 Enter:mmsys.cpl
- 打开“播放”(Playback)选项卡,右键单击禁用的播放设备,然后选择“启用”(Enable)。对列表中的所有禁用设备执行此操作。

- 右键单击(Right-click)要设置为默认播放设备的设备,然后选择设置(Set)为默认设备(Default Device)和设置(Set)为默认通信设备(Default Communication Device)。
- 切换到同一窗口上的“录制”(Recording)选项卡,右键单击禁用的录制设备,然后选择“启用”(Enable)。对列表中所有已禁用的设备重复此步骤。
- 右键单击(Right-click)要用作默认录制设备的设备,然后选择设置(Set)为默认设备(Default Device)和设置(Set)为默认通信设备(Default Communication Device)。

- 选择“应用”(Select Apply),然后选择底部的“确定”。
让Audacity 访问(Audacity Access Your Microphone)您(Your)PC
上的麦克风
Audacity 需要访问您的麦克风(access to your microphone)才能录制音频。如果您或某人在您的电脑上拒绝了此权限,请向应用程序授予麦克风权限以解决您的问题。
在 Windows 11 上
- 按Windows + I
打开“设置”。
- 选择(Select Privacy)左侧边栏中的隐私和安全,以及右侧窗格中的
麦克风。(Microphone)
- 打开麦克风(Microphone)访问、让(Let)应用程序访问您的麦克风和让(Let)桌面应用程序访问您的麦克风选项。

在 Windows 10 上
- 按Windows + I
启动设置。
- 在“设置”中选择“隐私”。
- 选择(Choose Microphone)左侧边栏中的麦克风。
- 选择右侧的“更改”并打开开关。(Change)

- 启用允许(Allow)应用程序访问您的麦克风选项。
- 也打开允许(Allow)桌面应用程序访问您的麦克风选项。
在Audacity中选择您喜欢的声音(Preferred Sound) 设备(Devices)
您可能会收到“打开声音设备时出错(Error)”消息,因为Audacity未使用您首选的设备。要解决您的问题,您可以在应用程序中手动设置播放和录音设备。
- 在计算机上打开 Audacity。
- Select Edit >从菜单栏中
选择编辑 >首选项。
- (Choose Audio Settings)选择左侧边栏中的
音频设置。
- 选择右侧的播放下拉菜单,然后选择您喜欢的播放设备。(Playback)

- 选择“录音”(Recording)下拉菜单并选择您喜欢的麦克风。
- 选择(Choose OK)底部的“确定”以保存您的设置。
调整 Audacity 中的采样率
Audacity的“打开声音设备时出错”错误可能是由于应用程序中指定的采样率不正确造成的。在这种情况下,请找到您设备的默认采样率,并在Audacity(Audacity)中使用该采样率来解决您的问题。
要查找您的设备的采样率:
- 打开使用Windows + R运行(Run),在框中键入以下内容,然后按 Enter:mmsys.cpl
- 打开“录音”(Recording)选项卡,右键单击您的麦克风,然后选择“属性”。
- 访问高级选项卡。
- 请注意“默认格式”(Default Format)部分中显示的采样率。在下面的屏幕截图中,采样率为 48000 Hz。

要更改 Audacity 中的采样率:
- 打开Audacity并选择Edit > Preferences。
- (Choose Audio Settings)选择左侧边栏中的
音频设置。
- 选择右侧的默认采样率下拉菜单,然后选择您在上面记下的速率。(Default Sample Rate)在我们的例子中,频率为 48000 Hz。

- 选择“项目采样率”(Project Sample Rate)下拉菜单,然后选择与上面提到的相同的速率。
- 选择底部的“确定”以保存更改。
在Windows上更新声音设备驱动程序(Sound Device Drivers)
PC 上过时的声音设备驱动程序可能会导致Audacity无法打开声音流,从而导致应用程序显示上述错误消息。在这种情况下,请更新设备已安装的驱动程序(update your device’s installed drivers)来解决您的问题。
- 右键单击(Right-click)“开始”(Start)菜单并选择“设备管理器”(Device Manager)。
- 展开声音(Expand Sound)、视频和游戏控制器,右键单击您的声音设备,然后选择更新(Update)驱动程序。

- (Select Search)在下一页上
选择自动搜索驱动程序。
- 让设备管理器(Device Manager)在您的电脑上查找并安装最新的声音驱动程序。
- (Reboot)更新驱动程序后
重新启动电脑。
在Audacity中禁用软件播放(Software Playthrough)和叠录(Overdub)
Audacity 开发人员建议禁用应用程序中的(features in the app)软件播放(Software Playthrough)和叠录(Overdub) 功能,以可能修复“打开声音设备时出错”错误。(Error)您可以使用此方法,看看是否可以解决您的问题。
- 在计算机上打开 Audacity。
- Select Transport > Transport Options并关闭“软件播放”(Software Playthrough)。

- Choose Transport > Transport Options再次选择 Transport > Transport Options并禁用Overdub。
重新启动所需的 Windows 音频(Required Windows Audio) 服务(Services)
Windows在后台运行各种音频服务,以帮助您安装的应用程序打开声音流。当您在Audacity 等音频应用程序(audio apps like Audacity)中遇到问题时,这些所需的Windows服务可能无法运行或出现故障。
在这种情况下,请重新启动这些服务并查看是否可以解决您的问题。
- 按Windows + R打开“运行”(Run),在框中输入以下内容,然后按 Enter:services.msc
- 右键单击(Right-click)列表中的 Windows Audio 服务,然后选择“重新(Windows Audio)启动”(Restart)。

- 右键单击(Right-click)Windows Audio Endpoint Builder服务并选择“重新启动”(Restart)。
- 关闭服务(Services)窗口并打开Audacity应用程序。
删除(Remove)并重新安装您的声音(Reinstall Your Sound) 设备(Devices)
如果您的“打开声音设备时出错(Error)”问题没有得到解决,则您的声音设备可能有故障(your sound devices may be faulty)。在这种情况下,请在您的电脑上卸载并重新安装这些设备,以解决您的问题。
- 打开 PC 上的设备管理器。
- 展开声音(Expand Sound)、视频和游戏控制器,右键单击您的声音设备,然后选择卸载(Uninstall)设备。
- 启用尝试(Attempt)删除该设备的驱动程序选项并选择卸载(Uninstall)。

- 删除声音设备后重新启动电脑。
- 您的电脑将在下次启动时自动安装您的设备。
解决Audacity 声音设备问题(Your Audacity Sound Device Issues)的多种方法(Ways)
(Audacity)当应用程序无法定位和使用您的声音设备时, (trouble locating and working with your sound devices)Audacity会显示“打开声音设备时出错(Error)”错误。这种情况会阻止您使用该应用程序来执行任务。幸运的是,这个问题并不太难处理。
您可以使用上述方法来解决您的错误并恢复您在应用程序中的活动。享受!
How to Fix Audacity’s “Error opening sound device” Issue
Having trouble working on your projects in Audacity as the app keeps saying, “Error opening sound device”? Your app may be facing difficulties working with your playback and recording devices, leading to the above error message. You can make a few changes here and there on your PC to resolve your error. We’ll show you how to do that.
A few reasons you get the above Audacity error are that you haven’t enabled all your sound devices, your PC doesn’t allow the app to access your microphone, your sound device drivers are outdated or faulty, a required Windows service isn’t running, and more.

Enable All Sound Devices on Your PC
When you get the “Error opening sound device” error in Audacity, check and enable all playback and mic devices on your PC. This ensures the app has access to the required device when you’re working on your projects in the app.
- Open the Run dialog box by pressing Windows + R.
- Type the following in the box and press Enter: mmsys.cpl
- Open the Playback tab, right-click a disabled playback device, and choose Enable. Do this for all disabled devices on the list.

- Right-click the device you want to set as the default playback device and choose Set as Default Device and Set as Default Communication Device.
- Switch to the Recording tab on the same window, right-click a disabled recording device, and choose Enable. Repeat this step for all disabled devices on the list.
- Right-click the device you want to use as the default recording device and choose Set as Default Device and Set as Default Communication Device.

- Select Apply followed by OK at the bottom.
Let Audacity Access Your Microphone on Your PC
Audacity needs access to your microphone to record audio. If you or someone has denied this permission on your PC, grant the app the mic permission to resolve your issue.
On Windows 11
- Open Settings by pressing Windows + I.
- Select Privacy & security in the left sidebar and Microphone on the right pane.
- Turn on the Microphone access, Let apps access your microphone, and Let desktop apps access your microphone options.

On Windows 10
- Launch Settings by pressing Windows + I.
- Select Privacy in Settings.
- Choose Microphone in the left sidebar.
- Select Change on the right and turn on the toggle.

- Enable the Allow apps to access your microphone option.
- Toggle on the Allow desktop apps to access your microphone option as well.
Select Your Preferred Sound Devices in Audacity
You may get an “Error opening sound device” message because Audacity isn’t using your preferred devices. To fix your issue, you can manually set your playback and recording devices in the app.
- Open Audacity on your computer.
- Select Edit > Preferences from the menu bar.
- Choose Audio Settings in the left sidebar.
- Select the Playback drop-down menu on the right and choose your preferred playback device.

- Select the Recording drop-down menu and choose your preferred mic.
- Choose OK at the bottom to save your settings.
Adjust the Sample Rate in Audacity
Audacity’s “Error opening sound device” error might result from incorrect sample rates specified in the app. In this case, find your device’s default sample rate and use that rate in Audacity to fix your issue.
To find your device’s sample rate:
- Open Run using Windows + R, type the following in the box, and press Enter:
mmsys.cpl
- Open the Recording tab, right-click your mic, and choose Properties.
- Access the Advanced tab.
- Note the sample rate displayed in the Default Format section. In the following screenshot, the sample rate is 48000 Hz.

To change the sample rate in Audacity:
- Open Audacity and select Edit > Preferences.
- Choose Audio Settings in the left sidebar.
- Select the Default Sample Rate drop-down menu on the right and choose the rate you noted above. In our case, it’s 48000 Hz.

- Select the Project Sample Rate drop-down menu and choose the same rate you noted above.
- Select OK at the bottom to save your changes.
Update Your Sound Device Drivers on Windows
Outdated sound device drivers on your PC can cause Audacity not to open the sound stream, leading the app to display the above error message. In this case, update your device’s installed drivers to resolve your issue.
- Right-click the Start menu and choose Device Manager.
- Expand Sound, video and game controllers, right-click your sound device, and choose Update driver.

- Select Search automatically for drivers on the following page.
- Let Device Manager find and install the latest sound drivers on your PC.
- Reboot your PC when you’ve updated the drivers.
Disable Software Playthrough and Overdub in Audacity
Audacity developers recommend disabling both Software Playthrough and Overdub features in the app to possibly fix an “Error opening sound device” error. You can use this method and see if that resolves your problem.
- Open Audacity on your computer.
- Select Transport > Transport Options and turn off Software Playthrough.

- Choose Transport > Transport Options again and disable Overdub.
Restart the Required Windows Audio Services
Windows runs various audio services in the background to help your installed apps open sound streams. When you experience issues in your audio apps like Audacity, those required Windows services may not be running or malfunctioning.
In this case, reboot those services and see if that resolves your problem.
- Open Run by pressing Windows + R, enter the following in the box, and press Enter:
services.msc
- Right-click the Windows Audio service on the list and select Restart.

- Right-click the Windows Audio Endpoint Builder service and choose Restart.
- Close the Services window and open your Audacity app.
Remove and Reinstall Your Sound Devices
If your “Error opening sound device” issue isn’t fixed, your sound devices may be faulty. In this case, uninstall and reinstall those devices on your PC to potentially resolve your issue.
- Open Device Manager on your PC.
- Expand Sound, video and game controllers, right-click your sound device, and choose Uninstall device.
- Enable the Attempt to remove the driver for this device option and choose Uninstall.

- Restart your PC when you’ve removed your sound device.
- Your PC will automatically install your device on the next boot.
Many Ways to Resolve Your Audacity Sound Device Issues
Audacity displays an “Error opening sound device” error when the app has trouble locating and working with your sound devices. This situation prevents you from using the app for your tasks. Luckily, the issue isn’t too difficult to deal with.
You can use the above methods to resolve your error and resume your activities in the app. Enjoy!