音频采样率时序

发布于 2024-09-13 04:37:03 字数 172 浏览 1 评论 0原文

我正在使用 NAudio 为运动控制应用程序生成一些音调。音频格式为 16kHz 单声道。如果我错了,请纠正我:赫兹是一秒,这意味着我们每秒有 16,000 个样本或每毫秒 16 个样本。 NAudio 中的样本以包含 1600 个浮点值的数组形式提供。

这是否意味着我可以通过耳机插孔每毫秒输出 16 个离散值?

I am using NAudio to generate some tones for a motion control application. The audio format is 16kHz mono. Correct me if I wrong here: A hertz is one second so that means we have 16,000 samples per second or 16 samples per millisecond. The samples in NAudio are provided as an array of 1600 float values.

Does this mean that I can output 16 discrete values per millisecond over the headphone jack?

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

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

发布评论

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

评论(1

时光是把杀猪刀 2024-09-20 04:37:04

您说对了一部分,具体取决于 16 kHz 单声道的确切含义。如果您将 NAudio 配置为以每秒 16000 个样本输出音频,那么您需要每毫秒 16 个样本。

另一方面,如果您需要以高达 16 kHz 单声道的频率输出音频,那么您需要将 NAudio 配置为每秒 32K 样本输出,因为 香农定理

You are partly right, depending on what exactly is meant by 16 kHz mono. If it is expressed such that you configured NAudio to output audio at 16000 samples per second, then 16 samples per millisecond is what you need.

On the other hand if you need to output audio at frequencies on up to 16 kHz mono, then you will need to configure NAudio to output at 32K samples per second, because of Shannon's theorem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文