如何玩在线(麦克风),一个声音文件? [英] How to Play a sound file on line-in (Microphone)?

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

问题描述

这标题可能有些可笑,但我有问题。我的 服务捕获线路输入 的,并保存在文件系统中的声音文件(该服务并没有被我发展,我必须使用那)。

所以我想写程序来选择声音文件(* .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

解决方案

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天全站免登陆