使用声音文件 C# - 修改速度

发布于 2024-12-25 01:11:41 字数 256 浏览 3 评论 0原文

有谁知道如何修改声音速度并比 C# 中的原始文件更快/更慢地播放声音文件?

目前我正在使用 .wav 文件,我进行了很多搜索,发现 SoundPlayerAudioVideoPlayback 是播放声音的唯一两个选项,但它们都不包含任何特殊的方法来提高或降低播放时的声速。

我正在构建一个钢琴应用程序,它允许用户修改速度,这就是我目前所处的情况。我希望一些音乐程序员可以帮助我!干杯

Does anyone have any idea how to modify the sound speed and play a sound file faster/slower than the original in C#?

At the moment I am using .wav files, I have searched a lot and found that SoundPlayer and AudioVideoPlayback are the only two options to play sound, but none of them contain any special method to increase or decrease the sound speed with which to play with.

I am building a piano application which lets user modify the tempo, this is the situation I am in at the moment. I hope a few musical programmers can help me! Cheers

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

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

发布评论

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

评论(2

情释 2025-01-01 01:11:41

之前提出过类似的问题:

C# Audio Library

其中一个答案建议使用以下工具可能对您有帮助:

http://naudio.codeplex.com/

A similar question was asked earlier:

C# Audio Library

One of the answers there suggested the following tool which might be helpful to you:

http://naudio.codeplex.com/

少女的英雄梦 2025-01-01 01:11:41

您正在寻找的是一个时间拉伸音频库,它可以改变播放速度,但不会改变音调——几乎没有任何伪影。

一些优秀的时间拉伸库可用:

dirac: http://www.dspdimension.com/ (最佳)

rubberband: http://breakfastquay.com/rubberband/

What you are looking for is a time-stretch audio library, which changes the playback speed but not the pitch -- with almost no artefacts.

A few excellent timestretch libraries available:

dirac: http://www.dspdimension.com/ (best)

rubberband: http://breakfastquay.com/rubberband/

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