用于麦克风的Speech API案例的C#代码 [英] C# code for Speech API case for microphone

查看:110
本文介绍了用于麦克风的Speech API案例的C#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是


我正在开发一个虚拟助手的应用程序。



我正在尝试用C#构建它,目前正在使用system.speech,但它根本不是很好。
b


所以我在考虑实施项目oxford的Speech API使它工作,我使用了WPF示例代码,并在文档中看到了示例代码。



事情是,这个文档示例是用于使用音频文件而不是从麦克风中获取声音,而WPF示例太大而无法进行短课程以获取麦克风的声音并将其转换为文本。



问题如下。
$


你能给我一个示例代码,能够将麦克风的声音转换成文本吗?已经得到了密钥和所有内容。



也许你可以帮我使用文档提供的相同代码但是使用麦克风而不是从文件中获取声音。 />


Hi,

I'm working on an app that will be a virtual assistant.

i'm trying to build it in C# and currently working with system.speech wich is not good at all.

So i was thinking in implementing project oxford's Speech API to make it work, i have used the WPF example code and saw the example code here on the documentation.

The thing is, the documentation example for this is for using Audio files and not taking sound from the microphone, and the WPF example is too large to make a short class to take the sound of my mic and transform it to text.

The question is the following.

Could you give me an example code that can be able to take my microphone's sound and transform it into text? already got the key and everything.

Perhaps you could help me use the same code that the documentation provides but using microphone instead of taking the sound from a file.

非常感谢&bbsp; b $ b $
问候

Thank you very much 

Regards

推荐答案

Woundify使用C#,Console,WPF,UWP,Project Oxford,System.Speech和其他API。它可以作为助手的基础。

Woundify uses C#, Console, WPF, UWP, Project Oxford, System.Speech, and other APIs. It can be used as the basis of a assistant.

GitHub上的Woundify


这篇关于用于麦克风的Speech API案例的C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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