如何通过线路输入(麦克风)播放声音文件?

发布于 2024-11-18 09:05:36 字数 307 浏览 9 评论 0原文

这个标题可能看起来很荒谬,但我有问题。我有服务捕获线路,并将文件作为声音文件保存在系统上(该服务不是我开发的,我必须使用它)。

所以我想编写程序来选择声音文件(*.wav、*.mp3 等),然后该声音文件将在线路输入(麦克风)上播放以录制为用户语音< /代码>

问:那么在 C# 中如何做到这一点?有什么建议吗?
谢谢

That title may be seem Ridiculous but I Have problem. I have Service capture line-in and, save file on system as sound file (that service didn't develop by me, and I must use that).

So I want to write program to select sound file (*.wav, *.mp3 or etc), and then that sound file, will be play on Line-in (Microphone) to record as user speech.

Q: So How Do this In C#? Any Advise?
Thanks

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

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

发布评论

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

评论(2

孤蝉 2024-11-25 09:05:36

您需要使用虚拟音频设备驱动程序(例如 示例),这将允许您向该输出设备播放音频,并将其显示为另一个应用程序的输入设备。或者,只需使用物理电缆将输出连接到输入(注意不要造成反馈环路)。

You need to use a virtual audio device driver (like this for example), which will allow you to play audio to that output device and it to appear as an input device to another application. Alternatively, just use a physical cable to connect an output to an input (taking care not to cause a feedback loop).

川水往事 2024-11-25 09:05:36

您可以使用VB-Audio虚拟电缆,它是免费的,您将能够播放扬声器作为麦克风的输入,我自己测试语音识别,在PC上播放视频,以及软件Voicemeeter 来自同一家公司帮助了我。它基本上将虚拟输出连接到虚拟输入,类似的东西,非常简单。我希望它对你有用,就像对我一样。

另请参阅最初提出此建议的这个答案,它对我来说是救星,将音频作为麦克风输入播放。

You can use VB-Audio Virtual Cable, It is free of Cost and you will be able to play speaker as the input to microphone, I did it myself to test speech recognition, played video on the PC, and the Software Voicemeeter By Same Company Helped me. It basically connected the virtual output to virtual input, Something like that ,It is really simple. I Hope it works for you like it did for me.

Also See This Answer Which Originally Suggested this and was life saver for me, Play audio as microphone input.

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