C# 中的音频捕获

发布于 2024-10-16 00:58:05 字数 118 浏览 5 评论 0原文

我有一个 MAYA 44 USB 声卡,想用 C# 连接它。我想从提供的麦克风进行录音并生成数据数组。 我发现了使用笔记本电脑内部声卡时的示例,但当涉及到外部声卡时,它就不太起作用了。 请问有人用C#连接过上述声卡吗?

I have a MAYA 44 USB sound card and would like to interface it with C#. I want to record from the provided microphones and produce a data array.
I have found examples when using the internal sound card from my laptop but when it comes to external it does not quite work.
Has anyone every connected the above sound card with C# please?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

白云悠悠 2024-10-23 00:58:06

您是否看过 DirectSound API(我认为仅限 Windows)。可能会提供您想要的东西。

Have you had a look at the DirectSound API (Windows only though, I think). Might provide what you're after.

半世晨晓 2024-10-23 00:58:06

关于如何用 C# 录制音频,SO 上已经有多个线程,所以我不会谈论这个。

我发现您的程序有两个可能的原因,它们有不同的解决方案:

  1. 您需要更改 Windows 音量控制中静音的音频源(“sndvol32.exe /R”)
  2. 打开音频设备时,有多个设备。您只需打开设备 0,而不是枚举它们,或许还可以选择另一个设备。外部声卡可能会显示为第二个设备。

On how to record audio with C# in general there are already multiple threads on SO, so I won't talk about that.

I see two possible causes for your program which have different solutions:

  1. You need to change which audio sources are muted in the windows volume control ("sndvol32.exe /R")
  2. When opening the audio device there are multiple devices. And you're simply opening device 0 instead of enumerating them and perhaps choosing another one. The external sound-card might appear as a second device.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文