播放音频的麦克风输入 [英] Play audio as microphone input

查看:555
本文介绍了播放音频的麦克风输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我来测试语音识别程序。有些我有机会获得code和其他人,我不知道。

I am to test voice recognition programs. Some which I have access to the code and others where I don't.

可悲的是我的(漂亮)的声音是不完美的,所以当我读文本稍微每次都不同声音。这使得检测困难和耗时。让我可以调整很多参数。

Sadly my (beautiful) voice is not perfect, so when I am reading a text it sounds slightly different each time. Which makes the testing difficult and time consuming. Giving that I can tweak a lot of parameters.

所以我想知道是否有一种方式来记录自己的声音(已完成)。然后发挥它作为普通麦克风输入,所以我测试将它看作麦克风输入的语音识别程序。

So I was wondering if there was a way to record my own voice (already done). And then play it as normal microphone input so the voice recognition program I am testing will see it as microphone input.

这也将极大地帮助,如果它可以在C#编程完成。因此,我可以在我自己的code指定何时玩什么。

This would also help greatly if it could be done programatically in C#. So I can in my own code specify when to play what.

要从扬声器进行播放,并有语音识别程序听麦克风是不是一种选择,因为它是不一样的声音在不同的计算机/扬声器/麦克风。

To play it from speakers and have the voice recognition programs listen to the microphone is not an option, because it is not the same sound on different computers/speakers/microphones.

感谢。

编辑:
什么到目前为止,我已经发现的是使用软件声卡模拟器。但我一直没能找到一个合适的。

What i have found so far is to use a software sound Card simulator. But I haven't been able to find a suitable one.

推荐答案

正如有打印机驱动程序不连接到打印机在所有的,而是写一个PDF文件,类似有一些不可用虚拟音频驱动程序连接到物理麦克风所有,但可以从其他来源,如文件或其他程序管道输入。

Just as there are printer drivers that do not connect to a printer at all but rather write to a PDF file, analogously there are virtual audio drivers available that do not connect to a physical microphone at all but can pipe input from other sources such as files or other programs.

我希望我不是被推荐免费软件违反任何规则,但 VB-音频虚拟电缆 应该让你创建一个虚拟的对输入和输出的音频设备。然后,你可以播放MP3到虚拟输出设备,然后设置虚拟输入设备为你的麦克风。从理论上讲,我认为这应该工作。

I hope I'm not breaking any rules by recommending free software, but VB-Audio Virtual Cable should let you create a pair of virtual input and output audio devices. Then you could play an MP3 into the virtual output device and then set the virtual input device as your "microphone". In theory I think that should work.

如果一切都失败了,你总是可以推出自己的虚拟音频驱动程序。微软提供了一些样本code 但遗憾的是它并不适用于旧的Windows XP中的音频模式。有可能是样品$ C $供XP了。

If all else fails, you could always roll your own virtual audio driver. Microsoft provides some sample code but unfortunately it is not applicable to the older Windows XP audio model. There is probably sample code available for XP too.

这篇关于播放音频的麦克风输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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