如何在线路输入(麦克风)上播放声音文件? [英] How to Play a sound file on line-in (Microphone)?

查看:59
本文介绍了如何在线路输入(麦克风)上播放声音文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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).

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

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.

问: 那么如何在 C# 中实现呢?有什么建议吗?
谢谢

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

推荐答案

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

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).

这篇关于如何在线路输入(麦克风)上播放声音文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆