将系统声音(立体声混音)录制到文件中

发布于 2024-12-28 01:33:55 字数 483 浏览 1 评论 0原文


我正在尝试从播放网络广播流的 Activex WMP 控件中录制声音,并且由于没有简单的方法来做到这一点,所以我决定录制系统声音或所谓的“你听到的声音”(立体声混音,在许多系统中都被禁用)件)。

那么,我如何录制系统声音并将其保存为 mp3、wav...文件,而不启用立体声混音,或者如何以编程方式启用它,而无需用户交互。

我没有音频应用程序的经验,所以请不要说尝试

  1. BASS - www.un4seen.com
  2. NewAC - symmatica.net/newac/
  3. WavePlayer - www.delphiarea.com/products/delphi-components/waveplayer/

而不给我代码示例,因为我已经尝试了解如何使用,但是,如果我这样做,我不会在这里问你。

我是新来的,这是我的第一个问题
[我希望我能得到好的答案]

提前致谢:]

iam trying to record sound from an activex WMP control playing an internet radio stream, and because no simple way to do it, i decided to record the system sound or the so called "what you hear" (the stereomix, which is disabled in many PCs).

so, how can i record system sound and save it an mp3, wav... file, without enabling stereomix, or how to enable it programatically, without user interaction.

i have no experience with audio applications, so please dont say try

  1. BASS - www.un4seen.com
  2. NewAC - symmetrica.net/newac/
  3. WavePlayer - www.delphiarea.com/products/delphi-components/waveplayer/

without giving me code exemple, cause i already tried to understand how to use, but, if i did i wouldnt askin you here.

i'am new here, and this is my first question
[i hope i get good answers]

THANKS IN ADVANCE :]

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

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

发布评论

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

评论(1

方觉久 2025-01-04 01:33:55

正如我们(在问题评论中)得出的结论,录制无线电流可能比从声卡录制更好:

看看 IndySynapseICS。 (Delphi 随 Indy 开箱即用)

每个组件都应该有示例,展示如何从 HTTP/TCP 服务器读取数据。

请注意,数据可能不仅仅是普通的 MP3 或 WMV,但通常有某种插入标题信息并将声音数据划分为块的框架

有许多流媒体服务器(即 ShoutcastIcecast 等)具有不同的音频数据编码方式。

您应该首先了解您的网络广播正在运行哪种流媒体服务器。当您发送 HTTP GET 请求 时发生的第一件事通常是包含一些标识信息的响应。

您也可能最终得到一个包含真实 URL 的播放列表文件。

PS:您可能想搜索(或询问)有关 SO 的其他问题,以获取有关我提到的主题的更多信息。

希望有帮助。

As we came up (in the question comments) with the conclusion that it might be better to record the radio stream instead of recording from the soundcard:

Have a look at Indy, Synapse or ICS. (Delphi comes with Indy out of the box)

There should be examples for each of these components that show how to read data from a HTTP/TCP server.

Be aware that the data is probably not just plain MP3 or WMV, but there is usually some kind of framing that inserts title information and divides the sound data into chunks.

There are many streaming servers (i.e. Shoutcast, Icecast and others) out there that have different ways to encode the audio data.

You should first find out what kind of streaming server your internet radio is running. The first thing that happens when you send a HTTP GET request is usually a response that has some identification information.

You could also end up with just a playlist file that has the real URL inside.

PS: You might want to search for (or ask) additional questions on SO to get more information about the topics I mentioned.

Hope that helps.

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