使特定频率(范围)更响亮

发布于 2024-09-30 02:37:10 字数 268 浏览 1 评论 0原文

我想让音频数据序列中的某些频率变得更大声。我已经使用 FFT 分析了数据,并获得了数据中每个音频的值。我只是不知道如何使用频率来操纵声音数据本身。

据我所知,到目前为止,数据的编码方式是每两个连续读数之间的差异决定了该时刻的音频幅度。因此,使该时刻的音频声音更大意味着使两个连续读数之间的差异更大。但我如何知道哪个时刻涉及哪个频率呢?我不知道频率何时开始出现。

(我使用 Python,特别是 PyAudio 来获取音频数据,使用 Num/SciPy 来获取 FFT,尽管这可能不相关。)

I want to make certain frequencies in a sequence of audio data louder. I have already analyzed the data using FFT and have gotten a value for each audio frequency in the data. I just have no idea how I can use the frequencies to manipulate the sound data itself.

From what I understand so far, data is encoded in such a way that the difference between every two consecutive readings determines the audio amplitude at that time instant. So making the audio louder at that time instant would involve making the difference between the two consecutive readings greater. But how do I know which time instants are involved with which frequency? I don't know when the frequency starts appearing.

(I am using Python, specifically PyAudio for getting the audio data and Num/SciPy for the FFT, though this probably shouldn't be relevant.)

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

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

发布评论

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

评论(1

审判长 2024-10-07 02:37:10

您正在寻找图形均衡器。快速谷歌搜索后发现了 rbeq,它似乎是用 Python 编写的 Rhythmbox 插件。我还没有查看代码来看看实际的 EQ 部分是用 Python 编写的还是只是控制主机中的某些内容,但我建议查看它们的源代码。

You are looking for a graphic equalizer. Some quick Googling turned up rbeq, which seems to be a plugin for Rhythmbox written in Python. I haven't looked through the code to see if the actual EQ part is written in Python or is just controlling something in the host, but I recommend looking through their source.

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